$ git clone -n https://gitee.com/opencloudos-stream/gifsicle.git /var/lib/mock/dist-oc9-epol-build-91957-59263/root/chroot_tmpdir/scmroot/gifsicle Cloning into '/var/lib/mock/dist-oc9-epol-build-91957-59263/root/chroot_tmpdir/scmroot/gifsicle'... $ git fetch origin master:KOJI_FETCH_HEAD From https://gitee.com/opencloudos-stream/gifsicle * [new branch] master -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 19c69b7 package init