$ git clone -n https://src.fedoraproject.org/rpms/python-jsonpath-rw.git /var/lib/mock/f42-build-side-1-3582703-46886/root/chroot_tmpdir/scmroot/python-jsonpath-rw Cloning into '/var/lib/mock/f42-build-side-1-3582703-46886/root/chroot_tmpdir/scmroot/python-jsonpath-rw'... $ git fetch origin a62e09db800c6cc43bc6b50c543afa95c64306a4:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/python-jsonpath-rw * [new ref] a62e09db800c6cc43bc6b50c543afa95c64306a4 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at a62e09d Use %autorelease and %autochangelog