summaryrefslogtreecommitdiffstats
path: root/pkg/integration/components/shell.go
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2024-03-07 20:20:42 +0100
committerGitHub <noreply@github.com>2024-03-07 20:20:42 +0100
commit44f553b6093c69d09718f617e0a7659c64f51015 (patch)
tree26216cd44d46ea6fcd21313541d39292c2c1b17e /pkg/integration/components/shell.go
parentad017459d2d3475c18182c6629b6e282c5c558cb (diff)
parent3b723282cbe98063523e22f9dd71000d20dc5e20 (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.go4
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
}