$ git clone -n https://src.fedoraproject.org/rpms/softhsm.git /var/lib/mock/f41-build-829124-155972/root/chroot_tmpdir/scmroot/softhsm Cloning into '/var/lib/mock/f41-build-829124-155972/root/chroot_tmpdir/scmroot/softhsm'... $ git fetch origin 4e1bbb65ea7c6ae012c1a0b159b66951c63161fd:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/softhsm * [new ref] 4e1bbb65ea7c6ae012c1a0b159b66951c63161fd -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 4e1bbb6 Prevent access to global C++ variables once they deleted