$ git clone -n https://src.fedoraproject.org/rpms/ldapdiff.git /var/lib/mock/f41-build-858764-168473/root/chroot_tmpdir/scmroot/ldapdiff Cloning into '/var/lib/mock/f41-build-858764-168473/root/chroot_tmpdir/scmroot/ldapdiff'... $ git fetch origin f1a55c1acb33ea81e5e0afe6fa176564c2a691a4:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/ldapdiff * [new ref] f1a55c1acb33ea81e5e0afe6fa176564c2a691a4 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at f1a55c1 Convert to %autorelease and %autochangelog