I'm able to clone a repository with this command:
$ git clone ssh://gitosis@myhost.com:22222/MyRepo.git
Initialized empty Git repository in /home/andrew/MyRepo/.git/
...
However, I'm unable to archive it:
$ git archive --remote ssh://gitosis@myhost.com:22222/MyRepo.git master
ERROR:gitosis.serve.main:Unknown command denied
Why would clone
behave differently from archive
?