]> git.scottworley.com Git - pinch/commitdiff
Quiet git init.defaultBranch hints during test runs
authorScott Worley <scottworley@scottworley.com>
Fri, 9 Jul 2021 22:12:58 +0000 (15:12 -0700)
committerScott Worley <scottworley@scottworley.com>
Fri, 9 Jul 2021 23:19:02 +0000 (16:19 -0700)
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