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

x permission lost on Windows merge

From
LLyle <webmaster@cosmicperl.com>
Date
Feb 19, 2011, 20:29 UTC
Message-ID
<4D602831.8060200@cosmicperl.com>
Hi All,
   I was just on IRC chatting about this issue. What I'm finding is that 
if a merge happens on a Windows git repo the x permission is lost, 
example (filename changed):
filename.pl

----------------------------- filename.pl ----------------------------- index 0388de4,94d7e76..9c31830 mode 100755,100755..100644

As you can see, both of the modified files are 0755 but the merged file is 0644. I know windows files don't have the x permission, which explains why the newly created merged file would be missing the x, but surely with filemode = false the behaviour should be to carry over the x from the two modified files?

This is causing me problems when the merged file gets pulled back onto Linux systems where it needs the x permission.

Lyle
Message 1 of 1 in “x permission lost on Windows merge”
  1. LyleFeb 19, 2011

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.