$ git clone -n https://src.fedoraproject.org/rpms/php-pecl-amqp.git /var/lib/mock/f42-build-862735-171084/root/chroot_tmpdir/scmroot/php-pecl-amqp Cloning into '/var/lib/mock/f42-build-862735-171084/root/chroot_tmpdir/scmroot/php-pecl-amqp'... $ git fetch origin f4621d3324f86dd0726d7a9dbdd4b6505ee973e0:KOJI_FETCH_HEAD From https://src.fedoraproject.org/rpms/php-pecl-amqp * [new ref] f4621d3324f86dd0726d7a9dbdd4b6505ee973e0 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at f4621d3 modernize the spec file