From: Jeff King <peff@peff.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: "Johannes Schindelin" <johannes.schindelin@gmx.de>,
git@vger.kernel.org, "Torsten Bögershausen" <tboegi@web.de>,
"Johannes Sixt" <j6t@kdbg.org>
Subject: Re: [PATCH] mingw: fix regression in t1308-config-set
Date: Thu, 14 Jul 2016 14:40:21 -0400 [thread overview]
Message-ID: <20160714184021.GD16497@sigill.intra.peff.net> (raw)
In-Reply-To: <xmqqr3awry5x.fsf@gitster.mtv.corp.google.com>
On Thu, Jul 14, 2016 at 09:18:18AM -0700, Junio C Hamano wrote:
> I added a few missing Cc: and quoted the whole patch here to those
> who were involved; I think this update is correct, but just trying
> to make sure people know.
>
> Not limited to this particular topic, there probably are some things
> we can and should add to the procedure to prevent further episodes
> like this, but I am not seeing anything immediately obvious offhand.
> There already is a way to prominently mark a topic to be not-ready
> with an outstanding issue called "What's cooking" report, but it is
> maintained manually and it can be leaky without extra set of eyes
> constantly monitoring.
Thanks, this fix looks good.
I'm open to to suggestions to make life easier for Windows folks.
Usually when dealing with paths, the suggestion is to use $(pwd), which
I did in the original, but as 58461bd noted, that broke other cases.
So code-wise, maybe this technique could be more general. I.e., could
$TRASH_DIRECTORY or $HOME already be in whatever format is likely to be
produced by git on the platform? Or does that just screw things up more
because Windows sometimes needs one form and sometimes the other?
Process-wise, I'm not sure. I seem to recall a few times when Windows
issues have come up in the past that somebody (JSixt?) seemed content to
let topics graduate with potential portability problems, and then have
the Git for Windows project fix them up separately. These days GfW seems
to track upstream more closely (which is wonderful!), but it means
portability problems cause a more immediate headache and slow down that
process.
> > Side note: it was not at all clear to me how 58461bd fixed the
> > problem by replacing $(pwd) with $HOME, given that HOME is set to
> > $TRASH_DIRECTORY which is set to $TEST_OUTPUT_DIRECTORY/... after
> > TEST_OUTPUT_DIRECTORY was set to TEST_DIRECTORY which in turn was
> > set to $(pwd).
> >
> > I guess the reason is that -P in `cd -P "$TRASH DIRECTORY"`, but
> > then I *really* do not understand how $(pwd) and $PWD could
> > disagree.
I don't think they did disagree. The issue is that "cd -P" caused _both_
of them to print the physical directory. But git is not using either of
them. It is blindly using "$HOME". So basically:
HOME=/path/with/symlinks
cd -P "$HOME"
will cause "$PWD" and "$HOME" to disagree. Likewise with "$(pwd)" and
"$HOME".
-Peff
prev parent reply other threads:[~2016-07-14 18:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-14 13:58 [PATCH] mingw: fix regression in t1308-config-set Johannes Schindelin
2016-07-14 16:18 ` Junio C Hamano
2016-07-14 18:40 ` Jeff King [this message]
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=20160714184021.GD16497@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=j6t@kdbg.org \
--cc=johannes.schindelin@gmx.de \
--cc=tboegi@web.de \
/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).