$ git clone -n https://gitee.com/fundawang/cryptsetup.git /var/lib/mock/dist-an23-build-357681-71155/root/chroot_tmpdir/scmroot/cryptsetup Cloning into '/var/lib/mock/dist-an23-build-357681-71155/root/chroot_tmpdir/scmroot/cryptsetup'... $ git fetch origin dc7dea28a4270877ebf72c48bf23ab37178c19c3:KOJI_FETCH_HEAD From https://gitee.com/fundawang/cryptsetup * [new ref] dc7dea28a4270877ebf72c48bf23ab37178c19c3 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at dc7dea2 2.7.1