-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for cloning git submodules (#1355)
Add support for git submodules Signed-off-by: Tom Kennedy <[email protected]>
- Loading branch information
1 parent
41841a4
commit 4bbd92e
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,6 +106,16 @@ func testGitCheckout(t *testing.T, when spec.G, it spec.S) { | |
err := fetcher.Fetch(testDir, "[email protected]:org/repo", "main", metadataDir) | ||
require.ErrorContains(t, err, "unable to fetch references for repository") | ||
}) | ||
|
||
it("initializes submodules", func() { | ||
err := fetcher.Fetch(testDir, "https://github.com/git-fixtures/submodule", "master", metadataDir) | ||
require.NoError(t, err) | ||
|
||
_, err = os.Lstat(path.Join(testDir, "basic", ".gitignore")) | ||
require.NoError(t, err) | ||
|
||
|
||
}) | ||
}) | ||
} | ||
|
||
|