$ git clone -n https://gitee.com/src-anolis-sig/leapp.git /var/lib/mock/dist-an7_9-updates-build-235536-62766/root/chroot_tmpdir/scmroot/leapp Cloning into '/var/lib/mock/dist-an7_9-updates-build-235536-62766/root/chroot_tmpdir/scmroot/leapp'... $ git reset --hard def4046bcec894c9c644d43ae87178bdd4ffb215 HEAD is now at def4046 use different func for 7to7 and 8to8