$ git clone -n http://fedora.riscv.rocks:3000/rpms/java-latest-openjdk.git /var/lib/mock/f40-build-789630-135936/root/chroot_tmpdir/scmroot/java-latest-openjdk Cloning into '/var/lib/mock/f40-build-789630-135936/root/chroot_tmpdir/scmroot/java-latest-openjdk'... $ git fetch origin 4eaf4ca2b8aa0b5859ed5e9517f7f1d35a27318a:KOJI_FETCH_HEAD From http://fedora.riscv.rocks:3000/rpms/java-latest-openjdk * [new ref] 4eaf4ca2b8aa0b5859ed5e9517f7f1d35a27318a -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 4eaf4ca Try to fix path to full source