# Re: Issue with GitGUI losing file permissions on merge

1 messages from 2011-02-21 to 2011-02-21. Participants: Stefan Haller.
Thread: https://gitlist.dev/t/26566

## Stefan Haller, 2011-02-21 07:25

Subject: Re: Issue with GitGUI losing file permissions on merge
Message-ID: <1jx15l9.1taq59z1rcvgbxM%lists@haller-berlin.de>
URL: https://gitlist.dev/e/1jx15l9.1taq59z1rcvgbxM%25lists%40haller-berlin.de
In-Reply-To: <79ec6c5b-eb2e-4f19-90c6-00e3af72797e@q14g2000vbf.googlegroups.com>

```
Lyle <lion.hopkins@gmail.com> wrote:

>   I've had an odd issue pop up a few times. After chatting with some
> people on #git and doing some further testing I finally managed to
> narrow down what's causing the issue. The git command line behaves
> properly, but GitGUI changes the file permission on the merge, losing
> the execute permission. So 0755 files become 0644, causing problems
> when pushed back to origin and pulled down to a Linux repo.

I've run into this too.  It has little to do with git gui though, and
nothing with msysgit.

It's a bug in git-update-index (which git gui happens to call when you
stage a file).  Here's some more information about it:

   <http://thread.gmane.org/gmane.comp.version-control.git/159716/focus=159888>

It is still on my to-do list to try and fix the problem, but I have
never gotten around to it yet.


-- 
Stefan Haller
Berlin, Germany
http://www.haller-berlin.de/

```
