$ git clone -n https://src.fedoraproject.org/rpms/cp2k.git /var/lib/mock/f41-build-859339-168684/root/chroot_tmpdir/scmroot/cp2k Cloning into '/var/lib/mock/f41-build-859339-168684/root/chroot_tmpdir/scmroot/cp2k'... $ git fetch origin 3c977f951bf60b458896ea2dd191bb21febd273b:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/cp2k * [new ref] 3c977f951bf60b458896ea2dd191bb21febd273b -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 3c977f9 [skip changelog] add patch to fix broken detection logic