$ git clone -n https://src.fedoraproject.org/rpms/zlib-ng.git /var/lib/mock/f41-build-851891-166124/root/chroot_tmpdir/scmroot/zlib-ng Cloning into '/var/lib/mock/f41-build-851891-166124/root/chroot_tmpdir/scmroot/zlib-ng'... $ git fetch origin 8a46722e3706f950363ce226993456c0289de2e4:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/zlib-ng * [new ref] 8a46722e3706f950363ce226993456c0289de2e4 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 8a46722 Apply a patch that fixes rhbz#2307237