$ git clone -n https://src.fedoraproject.org/rpms/atlas.git /var/lib/mock/f38-build-side-42-init-devel-1196870-30629/root/chroot_tmpdir/scmroot/atlas Cloning into '/var/lib/mock/f38-build-side-42-init-devel-1196870-30629/root/chroot_tmpdir/scmroot/atlas'... $ git fetch origin 3f0ff1cedcd991e7ebb332ec34f353ce466e076d:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/atlas * [new ref] 3f0ff1cedcd991e7ebb332ec34f353ce466e076d -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 3f0ff1c Use grep -F instead of fgrep during the compilation