$ git clone -n https://gitee.com/wz002/leapp.git /var/lib/mock/dist-an7_9-updates-build-269161-64062/root/chroot_tmpdir/scmroot/leapp Cloning into '/var/lib/mock/dist-an7_9-updates-build-269161-64062/root/chroot_tmpdir/scmroot/leapp'... $ git reset --hard 5b9e61f9a20895f89de5e5153f725b8c0c4bb2ca HEAD is now at 5b9e61f switch from rpm tree to source tree, remove patch step