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

slow process of post-receive script on a remote (samba) share

From
TCTamas Csabina <tcsabina@gmail.com>
Date
Jun 13, 2013, 09:18 UTC
Message-ID
<CAH+Cn14TLpR1KT+3GND2Zmb8tDmFBP7AWpyrT7nVeMFw6V7FGA@mail.gmail.com>
Dear list,

I am using Git bash from version 1.8.3.msysgit.0, on a Windows 7x64 PC. I have an issue with executing git push if I have a post-receive script configured. The content of the script is not really important, as if I have a script that contains only commented out lines (around 70 lines), my git push command is delayed with around 5 seconds.

I`ve tested the script on another PC and it is working fine. No delay at all. So there are some issues on my PC regarding how git processes remote scripts.

I took a wireshark trace with 2 scenarios on my PC:
 1. just execute `cat <path_to_the_script>\post-receive` command in the git bash
 2. did a `real` git push
Results of the wireshark traces shows:
 1. Read AndX Request, FID: 0x228f, 1024 bytes at offset 0 (1024 bytes
at time, always)
 2. Read AndX Request, FID: 0x21c9, 1 byte at offset 0 (1 byte, always)

Conclusion: git push command reads the post-receive script in 1 byte chunks, which dramatically slows down the execution process.

If more information is required about my setup or configuration, I will provided it happily, but I think this 1 byte read is the main reason for the issue.

Has anyone seen something similar? Or have any clues what is going on?

Thanks, tamas

ps: this is my 3rd (or 4th) attempt to post on the mailing list, using a different email account this time. If any of the previous attempt also arrived, then sorry for the double posts.

Next: Thomas Rast
Message 1 of 5 in “slow process of post-receive script on a remote (samba) share”
  1. Tamas CsabinaJun 13, 2013
  2. Thomas RastJun 13, 2013
  3. Tamas CsabinaJun 13, 2013
  4. Thomas RastJun 13, 2013
  5. Tamas CsabinaJun 14, 2013

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.