author | Jeff King <peff@peff.net> | |
Thu, 9 Jun 2011 15:51:36 +0000 (11:51 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 22 Jun 2011 18:24:50 +0000 (11:24 -0700) | ||
commit | 5bf6529aaa3fa829328ae00ddf7aa851935443b5 | |
tree | 384f4778f9e741969ac8661c2728f67045a94c6f | tree | snapshot |
parent | 28fc3a6857a5d7a6b4f63b2672fb0ce966b0df78 | commit | diff |
fix "git -c" parsing of values with equals signs
If you do something like:
git -c core.foo="value with = in it" ...
we would split your option on "=" into three fields and
throw away the third one. With this patch we correctly take
everything after the first "=" as the value (keys cannot
have an equals sign in them, so the parsing is unambiguous).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
If you do something like:
git -c core.foo="value with = in it" ...
we would split your option on "=" into three fields and
throw away the third one. With this patch we correctly take
everything after the first "=" as the value (keys cannot
have an equals sign in them, so the parsing is unambiguous).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c | diff | blob | history | |
t/t1300-repo-config.sh | diff | blob | history |