summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorblack_desk <clx814727823@gmail.com>2021-08-13 09:41:35 +0800
committerblack_desk <clx814727823@gmail.com>2021-08-13 17:03:37 +0800
commitbb4fe2653bec70287cc6525ac558e197e8babf33 (patch)
treed10d15250a048f77d84b9c8a0e16852a44c31d1a /pkg/commands
parenta2ee52142c2fe28b10d8ff5985dfd7d973a25a83 (diff)
fix moved submodule
Diffstat (limited to 'pkg/commands')
-rw-r--r--pkg/commands/models/file.go2
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
}
}