$ git clone -n https://gitee.com/cobratoxin/grep.git /var/lib/mock/dist-an8.8-build-279154-64448/root/chroot_tmpdir/scmroot/grep Cloning into '/var/lib/mock/dist-an8.8-build-279154-64448/root/chroot_tmpdir/scmroot/grep'... $ git fetch origin ff9e95d5a8b271ec0a15d486847065019e5558d3:KOJI_FETCH_HEAD From https://gitee.com/cobratoxin/grep * [new ref] ff9e95d5a8b271ec0a15d486847065019e5558d3 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at ff9e95d spec: add doc sub package