$ git clone -n https://gitee.com/gaohongmei/libgcrypt.git /var/lib/mock/dist-an8.6-build-218933-62058/root/chroot_tmpdir/scmroot/libgcrypt Cloning into '/var/lib/mock/dist-an8.6-build-218933-62058/root/chroot_tmpdir/scmroot/libgcrypt'... $ git reset --hard 28dcb3b6d06c6fe0ef698e806bef9a8b559f609c HEAD is now at 28dcb3b optimise spec file