$ git clone -n https://gitee.com/lxpzero/haproxy.git /var/lib/mock/dist-an23.3-build-419626-72884/root/chroot_tmpdir/scmroot/haproxy Cloning into '/var/lib/mock/dist-an23.3-build-419626-72884/root/chroot_tmpdir/scmroot/haproxy'... $ git fetch origin 3d37e7f774c9fa8713740ea7547ab566d0ab1600:KOJI_FETCH_HEAD From https://gitee.com/lxpzero/haproxy * [new ref] 3d37e7f774c9fa8713740ea7547ab566d0ab1600 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 3d37e7f update to 3.0.5 from 2.7.10