git config --get-urlmatch does not set exit code 1 when no match is found
- From
- Guilherme <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.