$ git clone -n https://src.koozali.org/smecontribs/smeserver-rsyncd /var/lib/mock/smecontribs11-build-2924-18013/root/chroot_tmpdir/scmroot/smeserver-rsyncd Cloning into '/var/lib/mock/smecontribs11-build-2924-18013/root/chroot_tmpdir/scmroot/smeserver-rsyncd'... $ 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 [...] -- [...]'