]> git.scottworley.com Git - pinch/blobdiff - tests/lib/test-setup.sh
Quiet git init.defaultBranch hints during test runs
[pinch] / tests / lib / test-setup.sh
index 86c23a22797f3d1c3ae7a07b032dae60a98175d1..f3eb661a175ff2b588f0aed2e4dfed6e1874e6e5 100644 (file)
@@ -19,7 +19,7 @@ foo_setup() {
 
   repo_dir="`mktemp -d`"
   repo="$repo_dir/repo"
 
   repo_dir="`mktemp -d`"
   repo="$repo_dir/repo"
-  git init "$repo"
+  git -c init.defaultBranch=master init "$repo"
   (
     cd "$repo"
     echo Contents > test-file
   (
     cd "$repo"
     echo Contents > test-file