$ git clone -n https://gitee.com/opencloudos-stream/rubygem-afm.git /var/lib/mock/dist-oc9-epol-build-106603-66848/root/chroot_tmpdir/scmroot/rubygem-afm Cloning into '/var/lib/mock/dist-oc9-epol-build-106603-66848/root/chroot_tmpdir/scmroot/rubygem-afm'... $ git fetch origin master:KOJI_FETCH_HEAD From https://gitee.com/opencloudos-stream/rubygem-afm * [new branch] master -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 9d7af41 update