I installed a Git server with gitosis in Ubuntu 4.10 64 bits. The server works OK, but a user has asked me to run the command git archive --remote .
http://linux.die.net/man/1/git-archive
This option Git, so I've read, is disabled and has to be enabled by using git-daemon. http://linux.die.net/man/1/git-daemon
I installed the required package for git-daemon:
apt-get install git-daemon-run
And I configured the configuration file /etc/sv/git-daemon/run:
#!/bin/sh
exec 2> & 1
echo 'git-daemon starting.'
exec chpst -ugitdaemon chpst-exec /usr/lib/git-core/git-daemon --verbose --export-all --enable=upload-archive --base-path =/srv/gitosis/git /srv/gitosis/git
Start the service:
sv up git-daemon
From the user's PC run:
$ git archive --remote ssh://gitosis@servername/repository/
And the following error:
ERROR: gitosis.serve.main: Unknown command denied fatal: The remote end hung up unexpectedly
I searched for information and have not found anything. Any idea because it fails?
P.D: Sorry for my English
git archive
againstGithub
repositiories by any chance?