$ git clone -n https://gitee.com/mgb01105731/dde.git /var/lib/mock/dist-an23-dde-build-378526-71802/root/chroot_tmpdir/scmroot/dde Cloning into '/var/lib/mock/dist-an23-dde-build-378526-71802/root/chroot_tmpdir/scmroot/dde'... $ git fetch origin 5a8317f9ead6b6ddab05cd384d9a6970433c1d63:KOJI_FETCH_HEAD From https://gitee.com/mgb01105731/dde * [new ref] 5a8317f9ead6b6ddab05cd384d9a6970433c1d63 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 5a8317f get tar from source