tests: make test-convert-git.t work across changed default branch name stable
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 08 Oct 2020 13:16:14 -0700
branchstable
changeset 45226 366c547a8a57
parent 45225 5a19d7c9129b
child 45227 4a146cff76fa
tests: make test-convert-git.t work across changed default branch name Recent git versions default to "main" instead of "master", which breaks our test. Differential Revision: https://phab.mercurial-scm.org/D9174
tests/test-convert-git.t
--- a/tests/test-convert-git.t	Mon Oct 05 15:08:15 2020 +0200
+++ b/tests/test-convert-git.t	Thu Oct 08 13:16:14 2020 -0700
@@ -1,5 +1,7 @@
 #require git
 
+  $ echo "[init]" >> $HOME/.gitconfig
+  $ echo "defaultBranch = master" >> $HOME/.gitconfig
   $ echo "[core]" >> $HOME/.gitconfig
   $ echo "autocrlf = false" >> $HOME/.gitconfig
   $ echo "[core]" >> $HOME/.gitconfig