$ git clone -n https://src.fedoraproject.org/rpms/ugrep.git /var/lib/mock/f40-build-796898-140981/root/chroot_tmpdir/scmroot/ugrep Cloning into '/var/lib/mock/f40-build-796898-140981/root/chroot_tmpdir/scmroot/ugrep'... $ git fetch origin d0f83762ef158a1d5f5ba314295bc613224f14a0:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/ugrep * [new ref] d0f83762ef158a1d5f5ba314295bc613224f14a0 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at d0f8376 Update to version 5.1.1 rhbz#2268600