diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-03-07 20:20:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-07 20:20:42 +0100 |
commit | 44f553b6093c69d09718f617e0a7659c64f51015 (patch) | |
tree | 26216cd44d46ea6fcd21313541d39292c2c1b17e /pkg/integration/components/shell.go | |
parent | ad017459d2d3475c18182c6629b6e282c5c558cb (diff) | |
parent | 3b723282cbe98063523e22f9dd71000d20dc5e20 (diff) |
Show all submodules recursively (#3341)
- **PR Description**
Extend the submodules tab to show not only the top-level submodules, but
also their nested submodules, recursively.
Fixes #3306.
Diffstat (limited to 'pkg/integration/components/shell.go')
-rw-r--r-- | pkg/integration/components/shell.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/integration/components/shell.go b/pkg/integration/components/shell.go index 48ff3fdf7..60c627918 100644 --- a/pkg/integration/components/shell.go +++ b/pkg/integration/components/shell.go @@ -345,9 +345,9 @@ func (self *Shell) CloneIntoRemote(name string) *Shell { return self } -func (self *Shell) CloneIntoSubmodule(submoduleName string) *Shell { +func (self *Shell) CloneIntoSubmodule(submoduleName string, submodulePath string) *Shell { self.Clone("other_repo") - self.RunCommand([]string{"git", "submodule", "add", "../other_repo", submoduleName}) + self.RunCommand([]string{"git", "submodule", "add", "--name", submoduleName, "../other_repo", submodulePath}) return self } |