$ git clone -n https://gitee.com/src-opencloudos-rpms/sanlock /var/lib/mock/dist-oc8-build-31844-9257/root/chroot_tmpdir/scmroot/sanlock Cloning into '/var/lib/mock/dist-oc8-build-31844-9257/root/chroot_tmpdir/scmroot/sanlock'... $ git reset --hard origin/oc8 HEAD is now at fcf8d4c import sanlock-3.8.4-4.oc8