git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git config --get-urlmatch does not set exit code 1 when no match is found
@ 2016-02-28  4:39 Guilherme
  2016-02-28 10:45 ` John Keeping
  2016-02-29 11:53 ` git config --get-urlmatch does not set exit code 1 when no match is found Jeff King
  0 siblings, 2 replies; 11+ messages in thread
From: Guilherme @ 2016-02-28  4:39 UTC (permalink / raw)
  To: git@vger.kernel.org

Hello,

My current woes are with multi-valued configuration values. More
specifically credential.helper

The documentation of git config says that when a value is not matched
it should return 1.

To reproduce make sure that credential.helper is not set.

git config --get-urlmatch credential.helper http://somedomain:1234/
echo %ERRORLEVEL%
0

git config --get credential.helper
echo %ERRORLEVEL%
1

git config --get credential.http://somedomain:1234/.helper
echo %ERRORLEVEL%
1

The documentation says that for credential.helper is not found for a
domain it should fall back to credential.helper if it is set. So I
think that all those tests above should have returned 0. Am i right?

Cheers.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-03-01 15:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).