$ git clone -n https://gitee.com/fundawang/haproxy.git /var/lib/mock/dist-an23.1-devel-build-365942-71298/root/chroot_tmpdir/scmroot/haproxy Cloning into '/var/lib/mock/dist-an23.1-devel-build-365942-71298/root/chroot_tmpdir/scmroot/haproxy'... $ git fetch origin 33fca08de542a71804f3b4aebe75706a3cd588a2:KOJI_FETCH_HEAD From https://gitee.com/fundawang/haproxy * [new ref] 33fca08de542a71804f3b4aebe75706a3cd588a2 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 33fca08 2.8.7