branching: merge with stable
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 08 Oct 2020 23:19:01 -0700
changeset 45674 66cb7ad3787c
parent 45673 7990e7d957b0 (current diff)
parent 45657 4a146cff76fa (diff)
child 45675 59ab71498bee
branching: merge with stable
--- a/tests/test-convert-git.t	Thu Oct 01 09:45:00 2020 +0200
+++ b/tests/test-convert-git.t	Thu Oct 08 23:19:01 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
--- a/tests/test-doctest.py	Thu Oct 01 09:45:00 2020 +0200
+++ b/tests/test-doctest.py	Thu Oct 08 23:19:01 2020 -0700
@@ -72,6 +72,9 @@
 
 cwd = os.path.dirname(os.environ["TESTDIR"])
 
+if not os.path.isdir(os.path.join(cwd, ".hg")):
+    sys.exit(0)
+
 files = subprocess.check_output(
     "hg files --print0 \"%s\"" % fileset, shell=True, cwd=cwd,
 ).split(b'\0')