author | Björn Steinbrink <B.Steinbrink@gmx.de> | |
Wed, 5 Dec 2007 15:11:24 +0000 (16:11 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 5 Dec 2007 19:34:44 +0000 (11:34 -0800) | ||
commit | 9e4bbeb95f5c9d046b671070eb35b3aa6f3ec5e6 | |
tree | 5a7d16992359ae791413185cd75dc7ab4b326c40 | tree | snapshot |
parent | 21640376a5b3e55557020a4932ba78daffc2d77e | commit | diff |
git config: Don't rely on regexec() returning 1 on non-match
Some systems don't return 1 from regexec() when the pattern does not
match (notably HP-UX which returns 20).
Bug identified by Dscho and H.Merijn Brand.
Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
Tested-by: H.Merijn Brand <h.m.brand@xs4all.nl>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Some systems don't return 1 from regexec() when the pattern does not
match (notably HP-UX which returns 20).
Bug identified by Dscho and H.Merijn Brand.
Signed-off-by: Björn Steinbrink <B.Steinbrink@gmx.de>
Tested-by: H.Merijn Brand <h.m.brand@xs4all.nl>
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-config.c | diff | blob | history |