git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: What's in git.git

From
FBFranck 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
Previous: Jakub NarebskiNext: Junio C Hamano
Message 15 of 16 in “What's in git.git”
  1. Junio C HamanoSep 11, 2006
  2. Jakub NarebskiSep 11, 2006
  3. Junio C HamanoSep 11, 2006
  4. Jakub NarebskiSep 11, 2006
  5. Petr BaudisSep 11, 2006
  6. Junio C HamanoSep 11, 2006
  7. pack-objects: document --revs, --unpacked and --all.Junio C Hamano, Sep 13, 2006
  8. Junio C HamanoSep 18, 2006
  9. Jakub NarebskiSep 18, 2006
  10. Junio C HamanoSep 18, 2006
  11. Jakub NarebskiSep 18, 2006
  12. Johannes SchindelinSep 18, 2006
  13. Junio C HamanoSep 18, 2006
  14. Jakub NarebskiSep 18, 2006
  15. Franck Bui-HuuSep 18, 2006
  16. Junio C HamanoSep 24, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.