Skip to content

Commit 4c6040f

Browse files
authored
Merge pull request #9 from obsidiansystems/git-objects-submodules-error
Add test for git submodules in fetchTree
2 parents 0ce84b6 + 21d9928 commit 4c6040f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/git.sh

+3
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ if [[ -n $(type -p git) ]]; then
6161
# Fetch the default branch.
6262
path=$(nix eval --raw "(builtins.fetchTree { type = \"git\"; url = file://$repo; treeHash = \"$treeHash\"; }).outPath")
6363
[[ $(cat $path/hello) = world ]]
64+
65+
# Submodules cause error.
66+
(! nix eval --raw "(builtins.fetchTree { type = \"git\"; url = file://$repo; treeHash = \"$treeHash\"; submodules = true; }).outPath")
6467
else
6568
echo "Git not installed; skipping Git tests"
6669
fi

0 commit comments

Comments
 (0)