diff options
author | black_desk <clx814727823@gmail.com> | 2021-08-13 09:41:35 +0800 |
---|---|---|
committer | black_desk <clx814727823@gmail.com> | 2021-08-13 17:03:37 +0800 |
commit | bb4fe2653bec70287cc6525ac558e197e8babf33 (patch) | |
tree | d10d15250a048f77d84b9c8a0e16852a44c31d1a | |
parent | a2ee52142c2fe28b10d8ff5985dfd7d973a25a83 (diff) |
fix moved submodule
-rw-r--r-- | pkg/commands/models/file.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/models/file.go b/pkg/commands/models/file.go index 0bbca78ae..d3aafb48e 100644 --- a/pkg/commands/models/file.go +++ b/pkg/commands/models/file.go @@ -63,7 +63,7 @@ func (f *File) IsSubmodule(configs []*SubmoduleConfig) bool { func (f *File) SubmoduleConfig(configs []*SubmoduleConfig) *SubmoduleConfig { for _, config := range configs { - if f.Name == config.Name { + if f.Name == config.Path { return config } } |