test-convert: disable autocrlf for git
authorEduard-Cristian Stefan <alexandrul.ct@gmail.com>
Fri, 08 Jun 2012 05:31:28 +0300
changeset 16892 cfd892b7569f
parent 16891 b0e8afdfa970
child 16893 46ccd44dd65b
test-convert: disable autocrlf for git Git might have autocrlf=true as a global or default setting, especially on windows. That is not expected in the tests and can cause + warning: LF will be replaced by CRLF in d/b. + The file will have its original line endings in your working directory. Explicitly setting it false will make the test pass in some setups - but still not out of the box.
tests/test-convert-git.t
tests/test-convert-tagsbranch-topology.t
--- a/tests/test-convert-git.t	Fri Jun 08 15:11:05 2012 +0200
+++ b/tests/test-convert-git.t	Fri Jun 08 05:31:28 2012 +0300
@@ -1,5 +1,7 @@
 
   $ "$TESTDIR/hghave" git || exit 80
+  $ echo "[core]" >> $HOME/.gitconfig
+  $ echo "autocrlf = false" >> $HOME/.gitconfig
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "convert=" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH
--- a/tests/test-convert-tagsbranch-topology.t	Fri Jun 08 15:11:05 2012 +0200
+++ b/tests/test-convert-tagsbranch-topology.t	Fri Jun 08 05:31:28 2012 +0300
@@ -1,5 +1,7 @@
 
   $ "$TESTDIR/hghave" git || exit 80
+  $ echo "[core]" >> $HOME/.gitconfig
+  $ echo "autocrlf = false" >> $HOME/.gitconfig
   $ echo "[extensions]" >> $HGRCPATH
   $ echo "convert=" >> $HGRCPATH
   $ echo 'hgext.graphlog =' >> $HGRCPATH