$ git clone -n https://src.fedoraproject.org/rpms/e2fsprogs.git /var/lib/mock/f41-build-856531-167656/root/chroot_tmpdir/scmroot/e2fsprogs Cloning into '/var/lib/mock/f41-build-856531-167656/root/chroot_tmpdir/scmroot/e2fsprogs'... $ git fetch origin 7a625ebed5c2cb1ca2fc330ed5b6bae9e95c1b2e:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/e2fsprogs * [new ref] 7a625ebed5c2cb1ca2fc330ed5b6bae9e95c1b2e -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 7a625eb Actually apply the new patch