diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2021-02-21 10:41:46 -0500 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2021-03-01 09:03:25 -0500 |
commit | 92a234322f5a46b65825c748220cef40209eeacd (patch) | |
tree | 081ebcaa2476d90409d986aa9cf4601d77d09f71 /tests/flakes.sh | |
parent | 9931f18c2dfff2642dea8e1a153eaaa58d7e3c8a (diff) |
Add test for git+file with bare repository
Diffstat (limited to 'tests/flakes.sh')
-rw-r--r-- | tests/flakes.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/flakes.sh b/tests/flakes.sh index 25ba2ac43..9747aba7a 100644 --- a/tests/flakes.sh +++ b/tests/flakes.sh @@ -25,6 +25,7 @@ templatesDir=$TEST_ROOT/templates nonFlakeDir=$TEST_ROOT/nonFlake flakeA=$TEST_ROOT/flakeA flakeB=$TEST_ROOT/flakeB +flakeGitBare=$TEST_ROOT/flakeGitBare for repo in $flake1Dir $flake2Dir $flake3Dir $flake7Dir $templatesDir $nonFlakeDir $flakeA $flakeB; do rm -rf $repo $repo.tmp @@ -604,6 +605,11 @@ nix flake update $flake3Dir [[ $(jq -c .nodes.flake2.inputs.flake1 $flake3Dir/flake.lock) =~ '["foo"]' ]] [[ $(jq .nodes.foo.locked.url $flake3Dir/flake.lock) =~ flake7 ]] +# Test git+file with bare repo. +rm -rf $flakeGitBare +git clone --bare $flake1Dir $flakeGitBare +nix build -o $TEST_ROOT/result git+file://$flakeGitBare + # Test Mercurial flakes. rm -rf $flake5Dir hg init $flake5Dir |