@matheusbsbs / matheus-bagliano / commits / c8c6a2ecb4
Fork 0

git-svn: test that extra blank lines aren't inserted in commit messages.

Improve the git-svn-author test to check that extra newlines aren't inserted into commit messages as they take a round trip from git to svn and back. We test both with and without the --add-author-from option to git-svn. git-svn: test that svn repo doesn't have extra newlines. Signed-off-by: Avery Pennarun <apenwarr@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Avery Pennarun committed Jun 12, 2008 at 19:10 UTC c8c6a2ecb48d717fe2735bf7790226021380d520
1 file changed +15 -1
t/t9122-git-svn-author.sh
+15 -1
@@ -64,7 +64,21 @@ test_expect_success 'interact with it via git-svn' '
64
65 # Make sure --add-author-from with --use-log-author affected
66 # the authorship information
67 - grep "^Author: A U Thor " actual.4
67 + grep "^Author: A U Thor " actual.4 &&
68 +
69 + # Make sure there are no commit messages with excess blank lines
70 + test $(grep "^ " actual.2 | wc -l) = 3 &&
71 + test $(grep "^ " actual.3 | wc -l) = 5 &&
72 + test $(grep "^ " actual.4 | wc -l) = 5 &&
73 +
74 + # Make sure there are no svn commit messages with excess blank lines
75 + (
76 + cd work.svn &&
77 + svn up &&
78 +
79 + test $(svn log -r2:2 | wc -l) = 5 &&
80 + test $(svn log -r4:4 | wc -l) = 7
81 + )
82 '
83
84 test_done