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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]