$ git clone -n https://gitee.com/wency_cn/libgexiv2.git /var/lib/mock/dist-an23-build-502407-74802/root/chroot_tmpdir/scmroot/libgexiv2 Cloning into '/var/lib/mock/dist-an23-build-502407-74802/root/chroot_tmpdir/scmroot/libgexiv2'... $ git fetch origin e88fd5238b3a29b7deafc77fd3bb439627b395c1:KOJI_FETCH_HEAD From https://gitee.com/wency_cn/libgexiv2 * [new ref] e88fd5238b3a29b7deafc77fd3bb439627b395c1 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at e88fd52 Update code from upstream