Merge branch 'bw/test-fix-grep-gnuism' into maint
authorJunio C Hamano <gitster@pobox.com>
Thu, 10 May 2012 17:32:15 +0000 (10:32 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 May 2012 17:32:15 +0000 (10:32 -0700)
* bw/test-fix-grep-gnuism:
t9400: fix gnuism in grep

t/t9400-git-cvsserver-server.sh
index 9199550ef4ffa39e4ce8bdb36badfd723e95e55f..173bf3d4afd7f6315c5ae887b98098a8815eaf16 100755 (executable)
@@ -500,8 +500,8 @@ test_expect_success 'cvs status (no subdirs in header)' '
 cd "$WORKDIR"
 test_expect_success 'cvs co -c (shows module database)' '
     GIT_CONFIG="$git_config" cvs co -c > out &&
-    grep "^master[      ]\+master$" < out &&
-    ! grep -v "^master[         ]\+master$" < out
+    grep "^master[      ][     ]*master$" <out &&
+    ! grep -v "^master[         ][     ]*master$" <out
 '
 
 #------------