$ git clone -n https://gitee.com/ocs-bot/aide.git /var/lib/mock/dist-ocs23-build-114142-7597/root/chroot_tmpdir/scmroot/aide Cloning into '/var/lib/mock/dist-ocs23-build-114142-7597/root/chroot_tmpdir/scmroot/aide'... $ git fetch origin master:KOJI_FETCH_HEAD From https://gitee.com/ocs-bot/aide * [new branch] master -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 2bc643d use right source0