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

Re: Update hook in Cygwin

From
Andreas Ericsson <ae@op5.se>
Date
Mar 8, 2006, 13:36 UTC
Message-ID
<440EDDE4.9070405@op5.se>
In-Reply-To
<ad8ce5c20603080416g5ed6d77el@mail.gmail.com>
Niklas Höglund wrote:
Show 21 quoted lines
> Hi.
> 
> After creating a couple of repositories and pushing and cloning them,
> I get the following:
> 
> $ git push --all origin
> ...
> hooks/update: line 88: mail: command not found
> 
> This is in cygwin. I'm rather glad I don't have the mail command
> installed, as I don't want mails going anywhere.
> 
> The update hook contains the following comment:
> 
> # To enable this hook:
> # (1) change the recipient e-mail address
> # (2) make this file executable by "chmod +x update".
> 
> But my impression after a cursory look at it is that it would always
> call "mail" whenever it is run, and since all files are executable in
> Windows (AFAIK), it would always be run.

I was under the impression that the cygwin abstraction layer had some unixy permission thing on top of NTFS. Perhaps that's wrong. If you remove the hook it won't be called.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Niklas HöglundNext: Shawn Pearce
Message 2 of 4 in “Update hook in Cygwin”
  1. Niklas HöglundMar 8, 2006
  2. Andreas EricssonMar 8, 2006
  3. Shawn PearceMar 8, 2006
  4. Christopher FaylorMar 8, 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.