$ git clone -n https://src.fedoraproject.org/rpms/os-autoinst.git /var/lib/mock/f41-build-849660-164918/root/chroot_tmpdir/scmroot/os-autoinst Cloning into '/var/lib/mock/f41-build-849660-164918/root/chroot_tmpdir/scmroot/os-autoinst'... $ git reset --hard a657b2a556c8e1984121f31d88854e64093538a4 HEAD is now at a657b2a Update to latest git