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