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

Re: git status resets permissions on index file -- Ubuntu 12.04 64b

From
Andrew Ruder <andy@aeruder.net>
Date
Aug 8, 2013, 22:18 UTC
Message-ID
<20130808221807.GA8518@gmail.com>
In-Reply-To
<52040F27.4050908@googlemail.com>
On Thu, Aug 08, 2013 at 11:35:35PM +0200, Stefan Beller wrote:
Show 9 quoted lines
> On 08/08/2013 10:27 PM, Justin Collum wrote:
> > [...]
> > -rwxrwxrwx   1 dev dev  17K Aug  8 13:12 index
> > [...]
> > -rw-rw-r--   1 dev dev  17K Aug  8 13:16 index   # <---------------
> 
> The permissions are set to reading for all and writing for you(r user)
> and your group. This should be no problem with standard git commands.
> Before you had the index file executable, why would you need that?

I'm about 90% sure the issue he's having is that the write bit for other/world goes away and he is neither the user dev or the group dev and the reason for all the executable bits is that he is regularly running

    chmod -R 777 .

Justin, if this is true, I will tell you that git respects your umask but I just can't bring myself to really suggest someone type umask 000 ever. :(

- Andy
Previous: Stefan BellerNext: Justin Collum
Message 3 of 11 in “git status resets permissions on index file -- Ubuntu 12.04 64b”
  1. Justin CollumAug 8, 2013
  2. Stefan BellerAug 8, 2013
  3. Andrew RuderAug 8, 2013
  4. Justin CollumAug 8, 2013
  5. Andrew RuderAug 8, 2013
  6. Kyle J. McKayAug 8, 2013
  7. Justin CollumAug 8, 2013
  8. Andreas SchwabAug 9, 2013
  9. Matthieu MoyAug 9, 2013
  10. Justin CollumAug 9, 2013
  11. Justin CollumAug 9, 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.