$ git clone -n https://gitee.com/rabbitali/libatasmart.git /var/lib/mock/dist-an23-build-490808-74523/root/chroot_tmpdir/scmroot/libatasmart Cloning into '/var/lib/mock/dist-an23-build-490808-74523/root/chroot_tmpdir/scmroot/libatasmart'... $ git fetch origin 866a0bc99fb87df434caf4dec729a602ae5adce2:KOJI_FETCH_HEAD From https://gitee.com/rabbitali/libatasmart * [new ref] 866a0bc99fb87df434caf4dec729a602ae5adce2 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 866a0bc Update code from upstream