Skip to content

Commit

Permalink
git-svn: test that extra blank lines aren't inserted in commit messages.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Avery Pennarun authored and Junio C Hamano committed Jun 14, 2008
1 parent 328eb9b commit c8c6a2e
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion t/t9122-git-svn-author.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,21 @@ test_expect_success 'interact with it via git-svn' '
# Make sure --add-author-from with --use-log-author affected
# the authorship information
grep "^Author: A U Thor " actual.4
grep "^Author: A U Thor " actual.4 &&
# Make sure there are no commit messages with excess blank lines
test $(grep "^ " actual.2 | wc -l) = 3 &&
test $(grep "^ " actual.3 | wc -l) = 5 &&
test $(grep "^ " actual.4 | wc -l) = 5 &&
# Make sure there are no svn commit messages with excess blank lines
(
cd work.svn &&
svn up &&
test $(svn log -r2:2 | wc -l) = 5 &&
test $(svn log -r4:4 | wc -l) = 7
)
'

test_done

0 comments on commit c8c6a2e

Please sign in to comment.