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

Storing permissions

From
MMMartin Mares <mj@ucw.cz>
Date
Apr 16, 2005, 23:00 UTC
Message-ID
<20050416230058.GA10983@ucw.cz>
Hi Linus et al.,

I'm trying to use git, but I frequenty run into problems with file permissions -- some archives (including the master git archive) contain group-writable files, but when I check them out, the permissions get trimmed by my umask (quite sensibly) and update-cache complains that they need update.

Does it really make sense to store full permissions in the trees? I think that remembering the x-bit should be good enough for almost all purposes and the other permissions should be left to the local environment.

Another possibility is to keep the permissions in the trees, but just make update-cache ignore differences in write permissions.

				Have a nice fortnight
-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
Man is the highest animal. Man does the classifying.
Next: Paul Jackson
Message 1 of 25 in “Storing permissions”
  1. Martin MaresApr 16, 2005
  2. Paul JacksonApr 16, 2005
  3. Junio C HamanoApr 16, 2005
  4. Paul JacksonApr 17, 2005
  5. David A. WheelerApr 17, 2005
  6. Morten WelinderApr 17, 2005
  7. Paul JacksonApr 17, 2005
  8. Linus TorvaldsApr 17, 2005
  9. Paul JacksonApr 17, 2005
  10. Linus TorvaldsApr 17, 2005
  11. David A. WheelerApr 17, 2005
  12. Paul JacksonApr 17, 2005
  13. Daniel BarkalowApr 17, 2005
  14. Linus TorvaldsApr 17, 2005
  15. David A. WheelerApr 17, 2005
  16. Symlinks [was Re: Storing permissions]Morten Welinder, Apr 17, 2005
  17. Zack BrownDec 7, 2005
  18. Andreas EricssonDec 7, 2005
  19. Zack BrownDec 7, 2005
  20. Petr BaudisDec 7, 2005
  21. Johannes SchindelinDec 7, 2005
  22. Junio C HamanoDec 7, 2005
  23. Zack BrownDec 7, 2005
  24. Junio C HamanoDec 7, 2005
  25. H. Peter AnvinDec 8, 2005

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.