Mercurial > hg
changeset 45992:9dd5b129ff28
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
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 30 Nov 2020 09:47:46 -0800 |
parents | c7f40562389f |
children | 8037d0641146 |
files | tests/test-git-interop.t |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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