Unable to archive git repository

273 views Asked by At

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?

1

There are 1 answers

0
Magnus Bäck On BEST ANSWER

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.