$ git clone -n https://gitee.com/ocs-bot/gimp.git /var/lib/mock/dist-ocs23-build-119271-8461/root/chroot_tmpdir/scmroot/gimp Cloning into '/var/lib/mock/dist-ocs23-build-119271-8461/root/chroot_tmpdir/scmroot/gimp'... $ git fetch origin master:KOJI_FETCH_HEAD From https://gitee.com/ocs-bot/gimp * [new branch] master -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 6a5daf8 small fix