$ git clone -n http://fedora.riscv.rocks:3000/rpms/golang-github-alecthomas-chroma-2.git /var/lib/mock/f41-build-808528-145939/root/chroot_tmpdir/scmroot/golang-github-alecthomas-chroma-2 Cloning into '/var/lib/mock/f41-build-808528-145939/root/chroot_tmpdir/scmroot/golang-github-alecthomas-chroma-2'... $ git reset --hard 62a500d8e9852f209443ddf7c9be92af70c677bb HEAD is now at 62a500d Try with -d instead of -t