$ git clone -n https://github.com/xcp-ng-rpms/sm.git /var/lib/mock/v8.3-v-qcow2-9474-28213/root/chroot_tmpdir/scmroot/sm Cloning into '/var/lib/mock/v8.3-v-qcow2-9474-28213/root/chroot_tmpdir/scmroot/sm'... $ git fetch origin aa684fc66f05e8da5370aa18fde122cc03a8167a:KOJI_FETCH_HEAD From https://github.com/xcp-ng-rpms/sm * [new ref] aa684fc66f05e8da5370aa18fde122cc03a8167a -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at aa684fc Release 3.2.12-10.2.0.qcow2.5