$ git clone -n https://gitee.com/jinzihao/sample.git /var/lib/mock/dist-an23-build-595120-102111/root/chroot_tmpdir/scmroot/sample Cloning into '/var/lib/mock/dist-an23-build-595120-102111/root/chroot_tmpdir/scmroot/sample'... $ git fetch origin master:KOJI_FETCH_HEAD From https://gitee.com/jinzihao/sample * [new branch] master -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 271a561 Release 29: add source tarball for clean-clone builds