mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 09:06:15 +02:00
Fix typo in submodule test
This commit is contained in:
parent
435366ed3c
commit
6c00a9545f
1 changed files with 3 additions and 2 deletions
|
@ -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