From: Jeff King <peff@peff.net>
To: Guilherme <guibufolo@gmail.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: git config --get-urlmatch does not set exit code 1 when no match is found
Date: Tue, 1 Mar 2016 10:03:21 -0500 [thread overview]
Message-ID: <20160301150321.GM12887@sigill.intra.peff.net> (raw)
In-Reply-To: <CAMDzUtwJVyaQbjgdQLi17_4ejGofpRFBDxXxjseaVcHLXCAwRA@mail.gmail.com>
On Mon, Feb 29, 2016 at 06:38:28PM +0530, Guilherme wrote:
> @Peff Thank you for the heads up.
>
> I'm trying to find out if there are any credential helpers configured
> in the system that will be running tests. On the dedicated test
> machines that is not a problem but the developer machines are.
Do you need to do it in an automated way, or just once?
If manual is OK, I suspect running:
GIT_TRACE=1 git credential </dev/null
will give you a list of what gets run. That's awfully hacky, though.
Probably a "git credential list" command would be useful. Or just
adapting it to use the urlmatch stuff.
> Should I already post a pre-emptive email asking about the corner cases?
>
> More importantly for me is if there is a case where get-url would not
> show a match where git clone would. If git clone skips a configuration
> that config url-match doesn't then it's not so bad.
Sorry, I don't recall the details. I feel like we discussed it a little
on the list, but I can't find it now. The closest I could find is:
http://article.gmane.org/gmane.comp.version-control.git/267895
I think the main differences would be in ordering, not in what is
selected.
-Peff
prev parent reply other threads:[~2016-03-01 15:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-28 4:39 git config --get-urlmatch does not set exit code 1 when no match is found Guilherme
2016-02-28 10:45 ` John Keeping
2016-02-28 11:52 ` John Keeping
2016-02-28 11:54 ` [PATCH 0/3] " John Keeping
2016-02-28 20:01 ` Junio C Hamano
2016-02-28 11:54 ` [PATCH 1/3] config: fail if --get-urlmatch finds no value John Keeping
2016-02-28 11:54 ` [PATCH 2/3] Documentation/git-config: use bulleted list for exit codes John Keeping
2016-02-28 11:54 ` [PATCH 3/3] Documentation/git-config: fix --get-all description John Keeping
2016-02-29 11:53 ` git config --get-urlmatch does not set exit code 1 when no match is found Jeff King
2016-02-29 13:08 ` Guilherme
2016-03-01 15:03 ` 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=20160301150321.GM12887@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=guibufolo@gmail.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).