Make test-convert-git compatible with other git versions (tested with 1.4.4.3)
authorThomas Arendsen Hein <thomas@intevation.de>
Fri, 31 Aug 2007 12:32:18 +0200
changeset 5271 5c2ca6d6ab21
parent 5262 bfd73b567b3d
child 5272 89696e71bd89
child 5276 aea35488ea66
Make test-convert-git compatible with other git versions (tested with 1.4.4.3)
tests/test-convert-git
tests/test-convert-git.out
--- a/tests/test-convert-git
+++ b/tests/test-convert-git
@@ -7,12 +7,12 @@ echo "convert=" >> $HGRCPATH
 
 mkdir git-repo
 cd git-repo
-git init
+git init-db >/dev/null 2>/dev/null
 echo a > a
 git add a
-git commit -m t1 > /dev/null || echo "git commit error"
+git commit -m t1 >/dev/null 2>/dev/null || echo "git commit error"
 echo b >> a
-git commit -a -m t2 > /dev/null || echo "git commit error"
+git commit -a -m t2 >/dev/null || echo "git commit error"
 cd ..
 
 hg convert git-repo
--- a/tests/test-convert-git.out
+++ b/tests/test-convert-git.out
@@ -1,4 +1,3 @@
-Initialized empty Git repository in .git/
 assuming destination git-repo-hg
 initializing destination git-repo-hg repository
 scanning source...