test: enforce master to be the default branch in test
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sun, 28 Mar 2021 19:50:37 +0200
changeset 46840 6dea77e195d2
parent 46839 eb2a6f66c463
child 46841 e7b4607d52e3
test: enforce master to be the default branch in test Newer git issue a message about this. Differential Revision: https://phab.mercurial-scm.org/D10281
tests/test-git-interop.t
--- a/tests/test-git-interop.t	Sun Mar 28 21:53:39 2021 +0200
+++ b/tests/test-git-interop.t	Sun Mar 28 19:50:37 2021 +0200
@@ -14,6 +14,7 @@
   >    git commit "$@" >/dev/null 2>/dev/null || echo "git commit error"
   >    count=`expr $count + 1`
   >  }
+  $ git config --global init.defaultBranch master
 
 
   $ hg version -v --config extensions.git= | grep '^[E ]'