$ git clone -n https://gitee.com/src-anolis-os/fence-agents.git /var/lib/mock/dist-an8.7-build-236825-62522/root/chroot_tmpdir/scmroot/fence-agents Cloning into '/var/lib/mock/dist-an8.7-build-236825-62522/root/chroot_tmpdir/scmroot/fence-agents'... $ git reset --hard 7b774de35baeb3e5d1395f634e2da07efc1fcb75 HEAD is now at 7b774de Replace some packages with build env