diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-08-05 21:37:24 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-05 21:37:24 +0200 |
commit | f0df1293acdba9513cae17e2c63b4169f1347371 (patch) | |
tree | e4d9309caa37b13a21ad38147833ed7ee29479bd /config.c | |
parent | gitweb/README: Document $base_url (diff) | |
parent | Better usage string for reflog. (diff) | |
download | git-f0df1293acdba9513cae17e2c63b4169f1347371.tar.xz git-f0df1293acdba9513cae17e2c63b4169f1347371.zip |
Merge branch 'maint-1.6.3' into maint
* maint-1.6.3:
Better usage string for reflog.
hg-to-git: don't import the unused popen2 module
send-email: remove debug trace
config: Keep inner whitespace verbatim
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -62,7 +62,8 @@ static char *parse_value(void) if (comment) continue; if (isspace(c) && !quote) { - space = 1; + if (len) + space++; continue; } if (!quote) { @@ -71,11 +72,8 @@ static char *parse_value(void) continue; } } - if (space) { - if (len) - value[len++] = ' '; - space = 0; - } + for (; space; space--) + value[len++] = ' '; if (c == '\\') { c = get_next_char(); switch (c) { |