tests: handle paths with whitespace

v2: incorporate remarks of Lukas

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
This commit is contained in:
Ferry Huberts 2012-03-18 11:43:49 +01:00 committed by Lars Hjemli
parent e032761a5e
commit f8492f79a3
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ mkrepo() {
git commit -m "add a+b" git commit -m "add a+b"
git branch "1+2" git branch "1+2"
fi fi
cd $dir cd "$dir"
} }
setup_repos() setup_repos()

View File

@ -25,7 +25,7 @@ run_test 'find `cgit` signature' '
' '
run_test 'find initial commit' ' run_test 'find initial commit' '
root=$(git --git-dir=$PWD/trash/repos/foo/.git rev-list HEAD | tail -1) root=$(git --git-dir="$PWD/trash/repos/foo/.git" rev-list HEAD | tail -1)
' '
run_test 'generate patch for initial commit' ' run_test 'generate patch for initial commit' '