$ git clone -n https://gitee.com/gcdota930915/libcgroup_3.git /var/lib/mock/dist-an23-build-486926-74383/root/chroot_tmpdir/scmroot/libcgroup_3 Cloning into '/var/lib/mock/dist-an23-build-486926-74383/root/chroot_tmpdir/scmroot/libcgroup_3'... $ git fetch origin d8195dfc5df200e5000183144ddc6e492d88a384:KOJI_FETCH_HEAD From https://gitee.com/gcdota930915/libcgroup_3 * [new ref] d8195dfc5df200e5000183144ddc6e492d88a384 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at d8195df Make file definition more common