mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
tests/fetchGit: add regression test for #7707
This commit is contained in:
parent
2c0866fc3f
commit
ae5082bbba
1 changed files with 14 additions and 0 deletions
|
@ -237,3 +237,17 @@ rm -rf $repo/.git
|
|||
# should succeed for a repo without commits
|
||||
git init $repo
|
||||
path10=$(nix eval --impure --raw --expr "(builtins.fetchGit \"file://$repo\").outPath")
|
||||
|
||||
# should succeed for a path with a space
|
||||
# regression test for #7707
|
||||
repo="$TEST_ROOT/a b"
|
||||
git init "$repo"
|
||||
git -C "$repo" config user.email "foobar@example.com"
|
||||
git -C "$repo" config user.name "Foobar"
|
||||
|
||||
echo utrecht > "$repo/hello"
|
||||
touch "$repo/.gitignore"
|
||||
git -C "$repo" add hello .gitignore
|
||||
git -C "$repo" commit -m 'Bla1'
|
||||
cd "$repo"
|
||||
path11=$(nix eval --impure --raw --expr "(builtins.fetchGit ./.).outPath")
|
||||
|
|
Loading…
Reference in a new issue