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

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

From
Justin Collum <jcollum@gmail.com>
Date
Aug 8, 2013, 20:27 UTC
Message-ID
<CACO0oR7a1-fUASQ+SJVbH1CU8d=NbHrK0MuMu+9Pr4_=7q85Vw@mail.gmail.com>

I've run into a strange situation with git lately. It seems that anything I do involving git will alter the permissions on my index file to the point that I can't do anything until I re-add the permissions on the file.

Looks like a bug to me, is it? It does seem like this has started happening since I moved over to 64b Ubuntu.

$ ll .git total 156K ... drwxrwxrwx 2 dev dev 4.0K Jul 23 09:30 hooks -rwxrwxrwx 1 dev dev 17K Aug 8 13:12 index drwxrwxrwx 2 dev dev 4.0K Jul 19 09:31 info ...

$ gs # On branch build-0.3 # Your branch is ahead of 'staging/build-0.3' by 5 commits. # (use "git push" to publish your local commits) # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # scripts/loadMongo.coffee nothing added to commit but untracked files present (use "git add" to track)

$ ll .git total 156K ... drwxrwxrwx 2 dev dev 4.0K Jul 23 09:30 hooks -rw-rw-r-- 1 dev dev 17K Aug 8 13:16 index # <--------------- this line <------------------------------- drwxrwxrwx 2 dev dev 4.0K Jul 19 09:31 info ...

$ git --version git version 1.8.3.4

Ubuntu:
Distributor ID: Ubuntu
Description: Ubuntu 12.04.2 LTS
Release: 12.04
Codename: precise
Next: Stefan Beller
Message 1 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.