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

[MSysGit] Windows & executable bit

From
Ferry Huberts <ferry.huberts@pelagic.nl>
Date
Aug 18, 2009, 09:42 UTC
Message-ID
<45321.77.61.241.211.1250588523.squirrel@hupie.xs4all.nl>
Hi list,

Our project is (also) using msysgit. Recently we changed the permissions on a file (a Linux shell script) by this (gitk) patch:

----------------------------- xxxx/SQC/SQC.sh ----------------------------- old mode 100644 new mode 100755

We did this on a Linux machine.

Now on a Windows machine we pull in the change: This causes problems when checking out the branch on which the change was made: after a checkout the status of SQC.sh is always 'modified' and we can't convince git to reset it. I actually succeeded _once_ but can not remember how I did it. The file is _always_ dirty.

Is this a bug?

I have to note that when I re-clone the repo I don't have the problem. So it seems to be somewhere in the 'update the working copy' code?

Ferry
Next: Johannes Schindelin
Message 1 of 9 in “[MSysGit] Windows & executable bit”
  1. Ferry HubertsAug 18, 2009
  2. Johannes SchindelinAug 18, 2009
  3. Thomas RastAug 18, 2009
  4. Ferry HubertsAug 18, 2009
  5. Johannes SchindelinAug 18, 2009
  6. Johannes SchindelinAug 18, 2009
  7. Erik Faye-LundAug 18, 2009
  8. Johannes SchindelinAug 18, 2009
  9. Johan 't HartAug 18, 2009

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.