Patchwork D9175: tests: use `git init` instead of unusual synonym `git init-db`

login
register
mail settings
Submitter phabricator
Date Oct. 8, 2020, 8:19 p.m.
Message ID <differential-rev-PHID-DREV-afw5zeozhxbtzwm5ftr3-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47410/
State Superseded
Headers show

Comments

phabricator - Oct. 8, 2020, 8:19 p.m.
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  I had never heard of `git init-db` until I saw our tests.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9175

AFFECTED FILES
  tests/test-convert-git.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-convert-git.t b/tests/test-convert-git.t
--- a/tests/test-convert-git.t
+++ b/tests/test-convert-git.t
@@ -32,7 +32,7 @@ 
   > }
   $ mkdir git-repo
   $ cd git-repo
-  $ git init-db >/dev/null 2>/dev/null
+  $ git init >/dev/null 2>/dev/null
   $ echo a > a
   $ mkdir d
   $ echo b > d/b
@@ -123,7 +123,7 @@ 
   $ count=10
   $ mkdir git-repo2
   $ cd git-repo2
-  $ git init-db >/dev/null 2>/dev/null
+  $ git init >/dev/null 2>/dev/null
   $ echo foo > foo
   $ git add foo
   $ commit -a -m 'add foo'
@@ -421,7 +421,7 @@ 
   $ count=19
   $ mkdir git-repo3
   $ cd git-repo3
-  $ git init-db >/dev/null 2>/dev/null
+  $ git init >/dev/null 2>/dev/null
   $ "$PYTHON" -c 'import struct; open("b", "wb").write(b"".join([struct.Struct(">B").pack(i) for i in range(256)])*16)'
   $ git add b
   $ commit -a -m addbinary
@@ -447,7 +447,7 @@ 
 
   $ mkdir git-repo4
   $ cd git-repo4
-  $ git init-db >/dev/null 2>/dev/null
+  $ git init >/dev/null 2>/dev/null
   $ echo >> foo
   $ git add foo
   $ commit -a -m addfoo
@@ -715,7 +715,7 @@ 
 
   $ mkdir git-repo5
   $ cd git-repo5
-  $ git init-db >/dev/null 2>/dev/null
+  $ git init >/dev/null 2>/dev/null
   $ echo 'sub' >> foo
   $ git add foo
   $ commit -a -m 'addfoo'
@@ -723,7 +723,7 @@ 
   $ cd ..
   $ mkdir git-repo6
   $ cd git-repo6
-  $ git init-db >/dev/null 2>/dev/null
+  $ git init >/dev/null 2>/dev/null
   $ git submodule add ${BASE} >/dev/null 2>/dev/null
   $ commit -a -m 'addsubmodule' >/dev/null 2>/dev/null