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