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

file permissions in Git repo

From
SSH <saajey@yahoo.com>
Date
Jan 16, 2014, 23:58 UTC
Message-ID
<1389916737.92225.YahooMailNeo@web124906.mail.ne1.yahoo.com>
Hi

We have a repository which holds lots of shell and perl scripts. We add the files to repository (from windows client) with executable permissions (using cygwin) but when we pull that repository on another machine (windows or linux), files dont have executable permission. Can you please provide a solutions for this?

We also tried post-commit and post-receive hooks to set the permission but it didnt seem to work either.

Thanks
Next: Jeff King
Message 1 of 6 in “file permissions in Git repo”
  1. SHJan 16, 2014
  2. Jeff KingJan 17, 2014
  3. Torsten BögershausenJan 17, 2014
  4. SHJan 17, 2014
  5. Torsten BögershausenJan 17, 2014
  6. SHJan 17, 2014

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.