summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands/git.go')
-rw-r--r--pkg/commands/git.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go
index aa06e6367..1f30c1d26 100644
--- a/pkg/commands/git.go
+++ b/pkg/commands/git.go
@@ -56,6 +56,8 @@ type GitCommand struct {
GetCmdWriter func() io.Writer
Cmd oscommands.ICmdObjBuilder
+
+ Submodules SubmoduleCommands
}
// NewGitCommand it runs git commands
@@ -106,6 +108,8 @@ func NewGitCommand(
Tags: loaders.NewTagLoader(cmn, cmd),
}
+ gitCommand.Submodules = NewSubmoduleCommands(cmn, cmd, dotGitDir)
+
gitCommand.PatchManager = patch.NewPatchManager(gitCommand.Log, gitCommand.ApplyPatch, gitCommand.ShowFileDiff)
return gitCommand, nil