$ git clone -n https://src.fedoraproject.org/rpms/R-xml2.git /var/lib/mock/f33-build-144355-42900/root/chroot_tmpdir/scmroot/R-xml2 Cloning into '/var/lib/mock/f33-build-144355-42900/root/chroot_tmpdir/scmroot/R-xml2'... $ git reset --hard d8a1c45daabe34eb18d09973869a983697e512d8 HEAD is now at d8a1c45 Update to latest version.