Search code examples
gitgitosis

Unable to archive git repository


I'm able to clone a repository with this command:

$ git clone ssh://[email protected]:22222/MyRepo.git
Initialized empty Git repository in /home/andrew/MyRepo/.git/
...

However, I'm unable to archive it:

$ git archive --remote ssh://[email protected]:22222/MyRepo.git master
ERROR:gitosis.serve.main:Unknown command denied

Why would clone behave differently from archive?


Solution

  • 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.