Skip to content

Commit 606b974

Browse files
bk2204gitster
authored andcommitted
t9108: make test hash independent
Instead of stripping off the first 41 characters of git log output, let's just strip off the first space-separated component, which will work for any size hash. Signed-off-by: brian m. carlson <[email protected]> Acked-by: Eric Wong <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5aa6877 commit 606b974

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t9108-git-svn-glob.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ test_expect_success 'test refspec globbing' '
4848
"tags/*/src/a:refs/remotes/tags/*" &&
4949
git svn multi-fetch &&
5050
git log --pretty=oneline refs/remotes/tags/end >actual &&
51-
sed -e "s/^.\{41\}//" actual >output.end &&
51+
cut -d" " -f2- actual >output.end &&
5252
test_cmp expect.end output.end &&
5353
test "$(git rev-parse refs/remotes/tags/end~1)" = \
5454
"$(git rev-parse refs/remotes/branches/start)" &&
@@ -84,7 +84,7 @@ test_expect_success 'test left-hand-side only globbing' '
8484
test $(git rev-parse refs/remotes/two/tags/end~3) = \
8585
$(git rev-parse refs/remotes/two/branches/start) &&
8686
git log --pretty=oneline refs/remotes/two/tags/end >actual &&
87-
sed -e "s/^.\{41\}//" actual >output.two &&
87+
cut -d" " -f2- actual >output.two &&
8888
test_cmp expect.two output.two
8989
'
9090

0 commit comments

Comments
 (0)