]> git.cameronkatri.com Git - cgit.git/blobdiff - tests/setup.sh
Merge branch 'stable'
[cgit.git] / tests / setup.sh
index 1e061078a2584b0b74eaa6976cf126896851a231..e3c6c17a307ee49863147f4bc96ae1170c42388c 100755 (executable)
 # run_test 'repo index' 'cgit_url "/" | tidy -e'
 # run_test 'repo summary' 'cgit_url "/foo" | tidy -e'
 
+unset CDPATH
 
 mkrepo() {
        name=$1
        count=$2
        dir=$PWD
        test -d "$name" && return
-       printf "Creating testrepo %s\n" $name
+       printf "Creating testrepo %s\n" "$name"
        mkdir -p "$name"
        cd "$name"
        git init
@@ -40,7 +41,7 @@ mkrepo() {
                git commit -m "add a+b"
                git branch "1+2"
        fi
-       cd $dir
+       cd "$dir"
 }
 
 setup_repos()