$ git clone -n https://src.fedoraproject.org/rpms/libsepol.git /var/lib/mock/f41-build-813574-148696/root/chroot_tmpdir/scmroot/libsepol Cloning into '/var/lib/mock/f41-build-813574-148696/root/chroot_tmpdir/scmroot/libsepol'... $ git fetch origin 7bc334f80c3470b1730191b9ecd47ee1c857438c:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/libsepol * [new ref] 7bc334f80c3470b1730191b9ecd47ee1c857438c -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 7bc334f Move changelog to changelog and use %autochangelog