$ git clone -n https://gitee.com/opencloudos-stream/byacc.git /var/lib/mock/dist-ocs23-base-build-269168-25836/root/chroot_tmpdir/scmroot/byacc Cloning into '/var/lib/mock/dist-ocs23-base-build-269168-25836/root/chroot_tmpdir/scmroot/byacc'... $ git fetch origin master:KOJI_FETCH_HEAD From https://gitee.com/opencloudos-stream/byacc * [new branch] master -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 983dfda !2 Get version in source url from variable version for auto upgrade Merge pull request !2 from rockerzhu/master