$ git clone -n https://gitee.com/huoyuanhao/libpng.git /var/lib/mock/dist-an8.6-build-109379-45761/root/chroot_tmpdir/scmroot/libpng Cloning into '/var/lib/mock/dist-an8.6-build-109379-45761/root/chroot_tmpdir/scmroot/libpng'... $ git reset --hard 6e9fb14cfe653698a6778fde65e79038b5b3e28e HEAD is now at 6e9fb14 import libpng-1.6.34-5.el8.src.rpm