$ git clone -n https://gitee.com/cobratoxin/python-oauthlib_1.git /var/lib/mock/dist-an8.7-build-273566-64202/root/chroot_tmpdir/scmroot/python-oauthlib_1 Cloning into '/var/lib/mock/dist-an8.7-build-273566-64202/root/chroot_tmpdir/scmroot/python-oauthlib_1'... $ git fetch origin 23148a7c2c8a49daf5bcd30f198a1d5625cdbdae:KOJI_FETCH_HEAD From https://gitee.com/cobratoxin/python-oauthlib_1 * [new ref] 23148a7c2c8a49daf5bcd30f198a1d5625cdbdae -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 23148a7 import python-oauthlib-2.1.0-1.el8.src.rpm