Re: What's in git.git
- From
- Franck Bui-Huu <vagabon.xyz@gmail.com>
- Date
- Sep 18, 2006, 14:23 UTC
- Message-ID
- <450EABD0.1040102@innova-card.com>
- In-Reply-To
- <7vu035u4c3.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 5 quoted lines
> > - Franck Bui-Huu and Rene Scharfe added 'git-archive' command, > that will eventually supersede 'git-tar-tree' and > 'git-zip-tree'. >
I still have one issue, but haven't found out the solution yet. Actually I even don't know if its related to 'archive/upload-archive' commands. Could someone give it a try to tell me if he can at least reproduce it ?
Here is the scenario (git-daemon and git-archive are executed on the same machine):
git-daemon is started with the following command:
$ git daemon --verbose --syslog --export-all \ --enable=upload-archive --base-path=/home/fbuihuu/tmp/ --reuseaddr
git-archive is run to archive a small repo located in ~/tmp/test-git. This is done in an endless loop:
$ while true; do
> git archive --format=tar --remote=git://localhost/test-git HEAD | tar tf - > done
a b a b a b a b a b a b a b # stuck !!!
So after a couple of loops, git-archive is stuck waiting for git-daemon but daemon seems to be stuck somewhere.
Syslog shows something interesting here:
[...] Sep 18 16:11:42 25-fbuihuu git-daemon: [16549] Connection from 127.0.0.1:30373 Sep 18 16:11:42 25-fbuihuu git-daemon: [16549] Extended attributes (16 bytes) exist <host=localhost> Sep 18 16:11:42 25-fbuihuu git-daemon: [16549] Request upload-archive for '/test-git2' Sep 18 16:11:42 25-fbuihuu git-upload-archive: finished Sep 18 16:11:42 25-fbuihuu git-daemon: [16549] Disconnected Sep 18 16:11:42 25-fbuihuu git-daemon: [16553] Connection from 127.0.0.1:30629 Sep 18 16:11:42 25-fbuihuu git-daemon: [16553] Extended attributes (16 bytes) exist <host=localhost> Sep 18 16:11:42 25-fbuihuu git-daemon: [16553] Request upload-archive for '/test-git2' Sep 18 16:11:42 25-fbuihuu git-upload-archive: finished [END]
It looks like git-daemon never receives the SIGCHLD signal that is normally sent by upload-archive once it has finished its job.
Franck