$ git clone -n https://gitee.com/src-opencloudos-rpms/librepo /var/lib/mock/dist-oc8-build-31667-9241/root/chroot_tmpdir/scmroot/librepo Cloning into '/var/lib/mock/dist-oc8-build-31667-9241/root/chroot_tmpdir/scmroot/librepo'... $ git reset --hard origin/oc8 HEAD is now at 25d98d2 import librepo-1.14.2-3.oc8