diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-07-13 19:50:39 +0300 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-07-13 19:50:39 +0300 |
commit | ceb587391312a690e454e1b095c28e09730e022f (patch) | |
tree | 593acef4ace60d96ed4da4cde2df723c2fac530b /src | |
parent | 97c0a85fc6e950970a9bf365eb26f9f32a9b3d68 (diff) | |
parent | 08c2d3e97c0ee45222b93c214d0b752d0c52ee2d (diff) |
Merge pull request #3302 from libgit2/cmn/submodule-foreach-diff-path
List a submodule only once when the path matches a submodule in the index
Diffstat (limited to 'src')
-rw-r--r-- | src/submodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/submodule.c b/src/submodule.c index fb3d4bf1e..892c98304 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -1647,7 +1647,7 @@ static int submodule_load_from_config( } else { khiter_t pos; git_strmap *map = data->map; - pos = git_strmap_lookup_index(map, name.ptr); + pos = git_strmap_lookup_index(map, path ? path : name.ptr); if (git_strmap_valid_index(map, pos)) { sm = git_strmap_value_at(map, pos); } else { |