Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-04-22 18:44:32 +0400
committerVicent Martí <vicent@github.com>2013-04-22 18:44:32 +0400
commita472f887fe8510bd972f8ce8bec6c9f53601aefb (patch)
treee9bc91e80f29479077b595aa138454e4a165063c /src/config_file.c
parentf063a75882769cb6fc652de425ac16ba4b88b616 (diff)
parent1be680c4d0909ee5160292d7b56c4522c4bc309c (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.c4
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);