# [MSysGit] Windows & executable bit

9 messages from 2009-08-18 to 2009-08-18. Participants: Ferry Huberts, Johannes Schindelin, Thomas Rast, Erik Faye-Lund, Johan 't Hart.
Thread: https://gitlist.dev/t/20652

## Ferry Huberts, 2009-08-18 09:42

Subject: [MSysGit] Windows & executable bit
Message-ID: <45321.77.61.241.211.1250588523.squirrel@hupie.xs4all.nl>
URL: https://gitlist.dev/e/45321.77.61.241.211.1250588523.squirrel%40hupie.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

```

## Johannes Schindelin, 2009-08-18 10:14

Subject: Re: [msysGit] Windows & executable bit
Message-ID: <alpine.DEB.1.00.0908181213590.4680@intel-tinevez-2-302>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0908181213590.4680%40intel-tinevez-2-302
In-Reply-To: <45321.77.61.241.211.1250588523.squirrel@hupie.xs4all.nl>

```
Hi,

On Tue, 18 Aug 2009, Ferry Huberts wrote:

> 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?

git config trust.fileMode false

Ciao,
Dscho

```

## Thomas Rast, 2009-08-18 10:23

Subject: Re: [msysGit] Windows & executable bit
Message-ID: <200908181223.48291.trast@student.ethz.ch>
URL: https://gitlist.dev/e/200908181223.48291.trast%40student.ethz.ch
In-Reply-To: <alpine.DEB.1.00.0908181213590.4680@intel-tinevez-2-302>

```
Johannes Schindelin wrote:
> 
> git config trust.fileMode false

Isn't that core.filemode ?

-- 
Thomas Rast
trast@{inf,student}.ethz.ch

```

## Ferry Huberts, 2009-08-18 11:17

Subject: Re: [msysGit] Windows & executable bit
Message-ID: <4262.77.61.241.211.1250594232.squirrel@hupie.xs4all.nl>
URL: https://gitlist.dev/e/4262.77.61.241.211.1250594232.squirrel%40hupie.xs4all.nl
In-Reply-To: <200908181223.48291.trast@student.ethz.ch>

```
>
> Isn't that core.filemode ?
>

yep. works

however, the man page says that you'll have to configure it in this way when
you're on a broken filesystem like FAT. We're on NTFS however....
NTFS is also broken then?

excuse me for the questions, I'm really a Linux guy, I know very little about
Windows. I'm just the interface towards the community :-)

```

## Johannes Schindelin, 2009-08-18 11:55

Subject: Re: Windows & executable bit
Message-ID: <alpine.DEB.1.00.0908181355090.4680@intel-tinevez-2-302>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0908181355090.4680%40intel-tinevez-2-302
In-Reply-To: <200908181223.48291.trast@student.ethz.ch>

```

Hi,

On Tue, 18 Aug 2009, Thomas Rast wrote:

> Johannes Schindelin wrote:
> > 
> > git config trust.fileMode false
> 
> Isn't that core.filemode ?

The matching is actually case-insensitive, but I prefer CamelCase here...

Ciao,
Dscho

```

## Erik Faye-Lund, 2009-08-18 12:19

Subject: Re: [msysGit] Windows & executable bit
Message-ID: <40aa078e0908180519u41b28ce7oc851791db1d5f773@mail.gmail.com>
URL: https://gitlist.dev/e/40aa078e0908180519u41b28ce7oc851791db1d5f773%40mail.gmail.com
In-Reply-To: <alpine.DEB.1.00.0908181355090.4680@intel-tinevez-2-302>

```
On Tue, Aug 18, 2009 at 1:55 PM, Johannes
Schindelin<Johannes.Schindelin@gmx.de> wrote:
>> > git config trust.fileMode false
>>
>> Isn't that core.filemode ?
>
> The matching is actually case-insensitive, but I prefer CamelCase here...

I believe the question was about it being in the trust vs the core section...

-- 
Erik "kusma" Faye-Lund
kusmabite@gmail.com
(+47) 986 59 656

```

## Johannes Schindelin, 2009-08-18 12:59

Subject: Re: [msysGit] Windows & executable bit
Message-ID: <alpine.DEB.1.00.0908181458450.4680@intel-tinevez-2-302>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0908181458450.4680%40intel-tinevez-2-302
In-Reply-To: <4262.77.61.241.211.1250594232.squirrel@hupie.xs4all.nl>

```
Hi,

On Tue, 18 Aug 2009, Ferry Huberts wrote:

> > Isn't that core.filemode ?
> 
> yep. works
> 
> however, the man page says that you'll have to configure it in this way 
> when you're on a broken filesystem like FAT. We're on NTFS however.... 
> NTFS is also broken then?

It is more a question of the ACLs not being properly mappable to POSIX 
permissions.  So we cannot trust the file mode.

Ciao,
Dscho

```

## Johannes Schindelin, 2009-08-18 12:59

Subject: Re: Windows & executable bit
Message-ID: <alpine.DEB.1.00.0908181459380.4680@intel-tinevez-2-302>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0908181459380.4680%40intel-tinevez-2-302
In-Reply-To: <40aa078e0908180519u41b28ce7oc851791db1d5f773@mail.gmail.com>

```

Hi,

On Tue, 18 Aug 2009, Erik Faye-Lund wrote:

> On Tue, Aug 18, 2009 at 1:55 PM, Johannes
> Schindelin<Johannes.Schindelin@gmx.de> wrote:
> >> > git config trust.fileMode false
> >>
> >> Isn't that core.filemode ?
> >
> > The matching is actually case-insensitive, but I prefer CamelCase here...
> 
> I believe the question was about it being in the trust vs the core 
> section...

Bah, you're right.  I let myself fool by the lowercase 'm'.  Sorry.

Ciao,
Dscho

```

## Johan 't Hart, 2009-08-18 16:47

Subject: Re: Windows & executable bit
Message-ID: <4A8ADB12.2080005@gmail.com>
URL: https://gitlist.dev/e/4A8ADB12.2080005%40gmail.com
In-Reply-To: <alpine.DEB.1.00.0908181459380.4680@intel-tinevez-2-302>

```
Johannes Schindelin schreef:
> Hi,
> Bah, you're right.  I let myself fool by the lowercase 'm'.  Sorry.


Haha. Looking with developer eyes. I know that problem from someone... 
Oh yea, me.

```
