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

Re: [PATCH] Use dashless git commands in setgitperms.perl

From
Todd Zullinger <tmz@pobox.com>
Date
Sep 20, 2008, 00:48 UTC
Message-ID
<20080920004814.GM2939@inocybe.teonanacatl.org>
In-Reply-To
<gb1ej9$bg2$1@ger.gmane.org>
Jakub Narebski wrote:
Show 19 quoted lines
> Todd Zullinger wrote:
> 
>>  # To save permissions/ownership data, place this script in your .git/hooks
>>  # directory and enable a `pre-commit` hook with the following lines:
>>  #      #!/bin/sh
>> -#     SUBDIRECTORY_OK=1 . git-sh-setup
>> +#     SUBDIRECTORY_OK=1 . git sh-setup
>>  #     $GIT_DIR/hooks/setgitperms.perl -r
>>  #
>>  # To restore permissions/ownership data, place this script in your .git/hooks
>>  # directory and enable a `post-merge` and `post-checkout` hook with the
>>  # following lines:
>>  #      #!/bin/sh
>> -#     SUBDIRECTORY_OK=1 . git-sh-setup
>> +#     SUBDIRECTORY_OK=1 . git sh-setup
>>  #     $GIT_DIR/hooks/setgitperms.perl -w
>>  #
> 
> The rest is probably O.K., but I don't think this change is good one.

I don't see git-sh-setup in /usr/bin with a default install of git 1.6, so without this change, wouldn't the comments be suggesting a potentially broken hook configuration?

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Suppose I were a member of Congress, and suppose I were an idiot. But,
I repeat myself.
    -- Mark Twain
Previous: Jakub NarebskiNext: Junio C Hamano
Message 3 of 5 in “Use dashless git commands in setgitperms.perl”
  1. Use dashless git commands in setgitperms.perlTodd Zullinger, Sep 19, 2008
  2. Jakub NarebskiSep 20, 2008
  3. Todd ZullingerSep 20, 2008
  4. Junio C HamanoSep 20, 2008
  5. Todd ZullingerSep 22, 2008

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.