$ git clone -n https://src.fedoraproject.org/rpms/chntpw.git /var/lib/mock/f41-build-830929-156786/root/chroot_tmpdir/scmroot/chntpw Cloning into '/var/lib/mock/f41-build-830929-156786/root/chroot_tmpdir/scmroot/chntpw'... $ git fetch origin 635b28930932dee18f29838f568598f148635fbb:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/chntpw * [new ref] 635b28930932dee18f29838f568598f148635fbb -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 635b289 It helps to apply the patch.