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