diff options
author | Vicent Martà <vicent@github.com> | 2013-04-22 18:44:32 +0400 |
---|---|---|
committer | Vicent Martà <vicent@github.com> | 2013-04-22 18:44:32 +0400 |
commit | a472f887fe8510bd972f8ce8bec6c9f53601aefb (patch) | |
tree | e9bc91e80f29479077b595aa138454e4a165063c /src/config_file.c | |
parent | f063a75882769cb6fc652de425ac16ba4b88b616 (diff) | |
parent | 1be680c4d0909ee5160292d7b56c4522c4bc309c (diff) |
Merge pull request #1493 from carlosmn/remotes
Revamp the refspec handling
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); |