$ git clone -n https://gitee.com/src-anolis-os/squashfs-tools.git /var/lib/mock/dist-an8.7-build-278212-64361/root/chroot_tmpdir/scmroot/squashfs-tools Cloning into '/var/lib/mock/dist-an8.7-build-278212-64361/root/chroot_tmpdir/scmroot/squashfs-tools'... $ git fetch origin a8:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-os/squashfs-tools * [new branch] a8 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 0da0c7e use extern in header files when declaring global variables