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