$ git clone -n https://github.com/xcp-ng-rpms/sm.git /var/lib/mock/v8.3-v-qcow2-9035-27919/root/chroot_tmpdir/scmroot/sm Cloning into '/var/lib/mock/v8.3-v-qcow2-9035-27919/root/chroot_tmpdir/scmroot/sm'... $ git fetch origin 7fe996b6d3bc4978737d501480f5831c112eec92:KOJI_FETCH_HEAD From https://github.com/xcp-ng-rpms/sm * [new ref] 7fe996b6d3bc4978737d501480f5831c112eec92 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 7fe996b Release 3.2.12-3.2.0.qcow2.2