$ git clone -n https://src.koozali.org/smeserver/perl-Test-Inline.git /var/lib/mock/dist-sme12-build-3647-18818/root/chroot_tmpdir/scmroot/perl-Test-Inline Cloning into '/var/lib/mock/dist-sme12-build-3647-18818/root/chroot_tmpdir/scmroot/perl-Test-Inline'... $ git fetch origin head:KOJI_FETCH_HEAD fatal: couldn't find remote ref head $ git reset --hard head fatal: ambiguous argument 'head': unknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'