git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alex Riesen <raa.lkml@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, Johannes Schindelin <Johannes.Schindelin@gmx.de>
Subject: Re: [PATCH] Fix t6031 on filesystems without working exec bit
Date: Thu, 22 May 2008 15:12:58 +0200	[thread overview]
Message-ID: <20080522131258.GE3206@steel.home> (raw)
In-Reply-To: <7vskwawvzq.fsf@gitster.siamese.dyndns.org>

Junio C Hamano, Thu, May 22, 2008 11:04:09 +0200:
> "Alex Riesen" <raa.lkml@gmail.com> writes:
> 
> > 2008/5/21 Junio C Hamano <gitster@pobox.com>:
> > ...
> >> @@ -12,6 +15,7 @@ test_expect_success 'mode change in one branch: keep changed version' '
> >>        git add dummy &&
> >>        git commit -m a &&
> >>        git checkout -b b1 master &&
> >> +      chmod +x file1 &&
> >>  	  git update-index --chmod=+x file1 &&

Just retested this on my normal system, and of course you are right.
My patch breaks the t6031 there.

> > Now, this is pointless in my setup. Cygwin just ignores the operation
> > and decidedddds (presumably according the file _content_ or maybe
> > phase of the moon) that is not executable. Working tree is still modified.
> 
> Doesn't it mean you spotted a bug?
> 

Looks like: builtin-merge-recursive.c does not seem to reference
trust_executable_bit (aka core.filemode) anywhere. The default
configuration statements are read in alright (there is a call to
git_default_config), it is just I am cannot find if the flag is used.

Johannes, in the meantime I lost the track of merge-recursive
completely. In this case, should I look at unpack-trees.c or is
it still somewhere inside merge-recursive (merge_file)?

> If your repository is marked so that executable bit is untrustworthy
> there, the check done when switching to branch "a1" to compare if "file1"
> that is involved in the switch operation has local changes should ignore
> (apparent and false) executable-bit change, shouldn't it?

Will see next monday, when I get back to that wretched laptop.

  reply	other threads:[~2008-05-22 13:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-18 14:57 [PATCH] Fix t6031 on filesystems without working exec bit Alex Riesen
2008-05-19  4:51 ` Junio C Hamano
2008-05-19  6:00   ` Alex Riesen
2008-05-21 17:14     ` Junio C Hamano
2008-05-22  8:16       ` Alex Riesen
2008-05-22  9:04         ` Junio C Hamano
2008-05-22 13:12           ` Alex Riesen [this message]
2008-05-23 19:12             ` Alex Riesen

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=20080522131258.GE3206@steel.home \
    --to=raa.lkml@gmail.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).