$ git clone -n https://src.fedoraproject.org/rpms/gphoto2.git /var/lib/mock/f31-build-96381-32821/root/chroot_tmpdir/scmroot/gphoto2 Cloning into '/var/lib/mock/f31-build-96381-32821/root/chroot_tmpdir/scmroot/gphoto2'... $ git reset --hard d97bf28a83b007aa6e4524983aa870f58d9dff42 HEAD is now at d97bf28 Update to 2.5.23