From: Junio C Hamano <gitster@pobox•com>
To: "Torsten Bögershausen" <tboegi@web•de>
Cc: Jon Forrest <nobozo@gmail•com>, git@vger•kernel.org
Subject: Re: Odd Difference Between Windows Git and Standard Git
Date: Fri, 20 May 2016 08:23:44 -0700 [thread overview]
Message-ID: <xmqqy474g3cv.fsf@gitster.mtv.corp.google.com> (raw)
In-Reply-To: <ede1c113-1ab8-6043-3e39-bbacec5db31c@web.de> ("Torsten Bögershausen"'s message of "Fri, 20 May 2016 16:19:25 +0200")
Torsten Bögershausen <tboegi@web•de> writes:
>>> What does
>>> git diff
>>> say ?
>>
>> Great question. For all the unexpected files it says the
>> same thing:
>>
>> old mode 100755
>> new mode 100644
>
> So the solution is to run
> git config core.filemode false
Thanks for asking a great question. I somehow expected that we
probe in init-db.c::create_default_files() for this when we probe
for case sensitivity, symlinks, etc., but apparently we don't.
I guess we don't because on some filesystems we can't. IIRC, it
goes something like: chmod immediately followed by lstat pretends
that change to the executable bit stuck, until the in-core buffer at
the vfs layer is flushed to the disk platter that holds the
filesystem without any notion of executable bit.
next prev parent reply other threads:[~2016-05-20 15:23 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-20 1:48 Odd Difference Between Windows Git and Standard Git Jon Forrest
2016-05-20 13:19 ` Torsten Bögershausen
2016-05-20 13:48 ` Jon Forrest
2016-05-20 14:19 ` Torsten Bögershausen
2016-05-20 14:28 ` Jon Forrest
2016-05-20 15:57 ` Torsten Bögershausen
2016-05-20 15:23 ` Junio C Hamano [this message]
2016-05-20 16:12 ` Torsten Bögershausen
2016-05-20 16:21 ` Junio C Hamano
2016-05-23 11:12 ` Johannes Schindelin
2016-05-23 13:44 ` Jon Forrest
2016-05-23 15:08 ` Johannes Schindelin
2016-05-23 18:52 ` Junio C Hamano
2016-05-24 4:52 ` Torsten Bögershausen
2016-05-24 11:57 ` Johannes Schindelin
2016-05-25 4:36 ` Torsten Bögershausen
2016-05-25 11:52 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqy474g3cv.fsf@gitster.mtv.corp.google.com \
--to=gitster@pobox$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
--cc=nobozo@gmail$(echo .)com \
--cc=tboegi@web$(echo .)de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox