]> granicus.if.org Git - cgit/commitdiff
tests/t0105-commit.sh: expect commit decorations
authorLars Hjemli <hjemli@gmail.com>
Tue, 27 Jan 2009 21:59:23 +0000 (22:59 +0100)
committerLars Hjemli <hjemli@gmail.com>
Tue, 27 Jan 2009 21:59:23 +0000 (22:59 +0100)
When a commit is referenced by a branch or tag the commit subject-
line will be suffixed with the proper decorations, hence the test
for this line needs to be updated.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
tests/t0105-commit.sh

index a864612971aab367a1f8c6baf8254a3d8517ae6b..ae794c88de0ae24cf13eed5d26ee69a06c2b3718 100755 (executable)
@@ -9,7 +9,7 @@ run_test 'find tree link' 'grep -e "<a href=./foo/tree/.>" trash/tmp'
 run_test 'find parent link' 'grep -E "<a href=./foo/commit/\?id=.+>" trash/tmp'
 
 run_test 'find commit subject' '
-       grep -e "<div class=.commit-subject.>commit 5</div>" trash/tmp
+       grep -e "<div class=.commit-subject.>commit 5<" trash/tmp
 '
 
 run_test 'find commit msg' 'grep -e "<div class=.commit-msg.></div>" trash/tmp'