$ git clone -n https://gitee.com/ali-inspur/libsndfile.git /var/lib/mock/dist-an23-build-540112-84526/root/chroot_tmpdir/scmroot/libsndfile Cloning into '/var/lib/mock/dist-an23-build-540112-84526/root/chroot_tmpdir/scmroot/libsndfile'... $ git fetch origin 74c024ff81eb466089a2eaffdb28c62f3fd94582:KOJI_FETCH_HEAD From https://gitee.com/ali-inspur/libsndfile * [new ref] 74c024ff81eb466089a2eaffdb28c62f3fd94582 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 74c024f Fix patch application: add missing %patch -P1 and reorder by Patch number