0

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?

ajwood
  • 18,227
  • 15
  • 61
  • 104

1 Answers1

1

git archive --remote requests that the remote performs the archiving for you, something Gitosis doesn't support. There's a commit on Github that appears to add this feature.

Magnus Bäck
  • 11,381
  • 3
  • 47
  • 59