tests: set old git default branch name for compatibility
authorMartin von Zweigbergk <martinvonz@google.com>
Mon, 30 Nov 2020 09:47:46 -0800
changeset 45992 9dd5b129ff28
parent 45991 c7f40562389f
child 45993 8037d0641146
tests: set old git default branch name for compatibility Git's default branch name has changed on my machine (from "master" to "main"). Let's set the old name in our tests so we're compatible with both defaults (and maybe still compatible with Git versions that don't know about the config option). Differential Revision: https://phab.mercurial-scm.org/D9470
tests/test-git-interop.t
--- a/tests/test-git-interop.t	Sat Nov 28 14:15:55 2020 +0100
+++ b/tests/test-git-interop.t	Mon Nov 30 09:47:46 2020 -0800
@@ -30,6 +30,7 @@
   [255]
   $ git init
   Initialized empty Git repository in $TESTTMP/nogit/.git/
+  $ git config --global init.defaultBranch master
 This status invocation shows some hg gunk because we didn't use
 `hg init --git`, which fixes up .git/info/exclude for us.
   $ hg status