forked from lix-project/lix
Fix typo in submodule test
This commit is contained in:
parent
435366ed3c
commit
6c00a9545f
|
@ -56,7 +56,8 @@ pathWithSubmodulesAgain=$(nix eval --raw "(builtins.fetchGit { url = file://$roo
|
||||||
test "$(find "$pathWithSubmodules" -name .git)" = ""
|
test "$(find "$pathWithSubmodules" -name .git)" = ""
|
||||||
|
|
||||||
# Git repos without submodules can be fetched with submodules = true.
|
# Git repos without submodules can be fetched with submodules = true.
|
||||||
noSubmoduleRepoBaseline=$(nix eval --raw "(builtins.fetchGit { url = file://$subRepo; rev = \"$rev\"; }).outPath")
|
subRev=$(git -C $subRepo rev-parse HEAD)
|
||||||
noSubmoduleRepo=$(nix eval --raw "(builtins.fetchGit { url = file://$subRepo; rev = \"$rev\"; submodules = true; }).outPath")
|
noSubmoduleRepoBaseline=$(nix eval --raw "(builtins.fetchGit { url = file://$subRepo; rev = \"$subRev\"; }).outPath")
|
||||||
|
noSubmoduleRepo=$(nix eval --raw "(builtins.fetchGit { url = file://$subRepo; rev = \"$subRev\"; submodules = true; }).outPath")
|
||||||
|
|
||||||
[[ $noSubmoduleRepoBaseline == $noSubmoduleRepo ]]
|
[[ $noSubmoduleRepoBaseline == $noSubmoduleRepo ]]
|
||||||
|
|
Loading…
Reference in a new issue