diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-04-25 15:47:53 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-04-25 15:47:53 +0200 |
| commit | a7d19b975a604b2800ba428a185895241313d1f6 (patch) | |
| tree | 8179a1b0b0268f653c42f8efb573f839ee303a05 /src/config_file.c | |
| parent | f9f2344bd4ba6c81a96959509ba59f8563b60265 (diff) | |
| download | libgit2-a7d19b975a604b2800ba428a185895241313d1f6.tar.gz | |
config: also allow escaping outside of a quoted string
This limitation was a misparsing of the documentation.
Diffstat (limited to 'src/config_file.c')
| -rw-r--r-- | src/config_file.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/config_file.c b/src/config_file.c index c0fa8be1d..5cc15d457 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -1157,12 +1157,6 @@ static char *fixup_line(const char *ptr, int quote_count) *out++ = '\\'; goto out; } - /* otherwise, the backslash must be inside quotes */ - if ((quote_count % 2) == 0) { - git__free(str); - giterr_set(GITERR_CONFIG, "Invalid escape at %s", ptr); - return NULL; - } if ((esc = strchr(escapes, *ptr)) != NULL) { *out++ = escaped[esc - escapes]; } else { |
