$ git clone -n https://gitee.com/src-opencloudos-rpms/java_cup.git /var/lib/mock/dist-oc9-build-48799-14595/root/chroot_tmpdir/scmroot/java_cup Cloning into '/var/lib/mock/dist-oc9-build-48799-14595/root/chroot_tmpdir/scmroot/java_cup'... $ git fetch origin oc9:KOJI_FETCH_HEAD From https://gitee.com/src-opencloudos-rpms/java_cup * [new branch] oc9 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at b415364 import java_cup-0.11b-2.tl4