$ git clone -n https://gitee.com/src-opencloudos-rpms/resource-agents /var/lib/mock/dist-oc8-build-30932-9214/root/chroot_tmpdir/scmroot/resource-agents Cloning into '/var/lib/mock/dist-oc8-build-30932-9214/root/chroot_tmpdir/scmroot/resource-agents'... $ git reset --hard origin/oc8 HEAD is now at 0824ad8 import resource-agents-4.9.0-29.oc8.2