git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git config --get-urlmatch does not set exit code 1 when no match is found

From
GGuilherme <guibufolo@gmail.com>
Date
Feb 28, 2016, 04:39 UTC
Message-ID
<CAMDzUtzNKAYSKYkt3WagkUrA2mKaoDu1rT6Nhf89pXSMg0wZwA@mail.gmail.com>
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.
Next: John Keeping
Message 1 of 11 in “git config --get-urlmatch does not set exit code 1 when no match is found”
  1. GuilhermeFeb 28, 2016
  2. John KeepingFeb 28, 2016
  3. John KeepingFeb 28, 2016
  4. 0/3 Re: git config --get-urlmatch does not set exit code 1 when no match is foundJohn Keeping, Feb 28, 2016
  5. 1/3 config: fail if --get-urlmatch finds no valueJohn Keeping, Feb 28, 2016
  6. 2/3 Documentation/git-config: use bulleted list for exit codesJohn Keeping, Feb 28, 2016
  7. 3/3 Documentation/git-config: fix --get-all descriptionJohn Keeping, Feb 28, 2016
  8. Junio C HamanoFeb 28, 2016
  9. Jeff KingFeb 29, 2016
  10. GuilhermeFeb 29, 2016
  11. Jeff KingMar 1, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.