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
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Aug 9, 2013, 12:58 UTC
Message-ID
<vpqa9krja1f.fsf@anie.imag.fr>
In-Reply-To
<8761vf3uml.fsf@igel.home>
Andreas Schwab <schwab@linux-m68k.org> writes:
Show 6 quoted lines
> Justin Collum <jcollum@gmail.com> writes:
>
>>      sudo chmod 644 ./.git/index
>
> That doesn't make sense.  If you are the owner of the file, why do you
> need sudo???

I suspect that some over-use of "sudo" resulted in files or directories belonging to root. What does

  find . -user 0
say?

(As a developer, you should never need sudo. You should only need in as an administrator of your machine.)

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Andreas SchwabNext: Justin Collum
Message 9 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.