$ git clone -n https://src.fedoraproject.org/rpms/R-git2r.git /var/lib/mock/f33-build-270057-51520/root/chroot_tmpdir/scmroot/R-git2r Cloning into '/var/lib/mock/f33-build-270057-51520/root/chroot_tmpdir/scmroot/R-git2r'... $ git reset --hard 4e168f1647f83b9dfe43ae7eac881349f6f4b65b HEAD is now at 4e168f1 Properly remove old patches.