$ git clone -n https://src.fedoraproject.org/rpms/neovim.git /var/lib/mock/f41-build-854392-166862/root/chroot_tmpdir/scmroot/neovim Cloning into '/var/lib/mock/f41-build-854392-166862/root/chroot_tmpdir/scmroot/neovim'... $ git fetch origin cfb85a6e83e90aaec29598c96215bb50b4556bfa:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/neovim * [new ref] cfb85a6e83e90aaec29598c96215bb50b4556bfa -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at cfb85a6 Use easier to understand %bcond