diff options
Diffstat (limited to 'src/config_file.c')
-rw-r--r-- | src/config_file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config_file.c b/src/config_file.c index a4ff8bb94..a9a40c366 100644 --- a/src/config_file.c +++ b/src/config_file.c @@ -482,8 +482,10 @@ static int config_set_multivar( pos = git_strmap_lookup_index(b->values, key); if (!git_strmap_valid_index(b->values, pos)) { + /* If we don't have it, behave like a normal set */ + result = config_set(cfg, name, value); git__free(key); - return GIT_ENOTFOUND; + return result; } var = git_strmap_value_at(b->values, pos); |