$ git clone -n https://gitee.com/gaohongmei/hostname.git /var/lib/mock/dist-an8.6-build-180931-59479/root/chroot_tmpdir/scmroot/hostname Cloning into '/var/lib/mock/dist-an8.6-build-180931-59479/root/chroot_tmpdir/scmroot/hostname'... $ git reset --hard 6105080734e69952033cb2f5ea403df037085982 HEAD is now at 6105080 fix build failed in rpmbuild with no-root user