]> git.ipfire.org Git - thirdparty/git.git/blobdiff - config.c
fix "git -c" parsing of values with equals signs
[thirdparty/git.git] / config.c
index 61de4d6a178ec8c2886331daefead68e762362db..84ff346859b331b08c4ffd6f04eacb67d5ee3b88 100644 (file)
--- a/config.c
+++ b/config.c
@@ -45,7 +45,7 @@ static int git_config_parse_parameter(const char *text,
        struct strbuf tmp = STRBUF_INIT;
        struct strbuf **pair;
        strbuf_addstr(&tmp, text);
-       pair = strbuf_split(&tmp, '=');
+       pair = strbuf_split_max(&tmp, '=', 2);
        if (pair[0]->len && pair[0]->buf[pair[0]->len - 1] == '=')
                strbuf_setlen(pair[0], pair[0]->len - 1);
        strbuf_trim(pair[0]);