Merge branch 'pw/rebase-i-regression-fix'
[gitweb.git] / t / t9003-help-autocorrect.sh
index dfe95c923b49d913153b9b94ac7d393bb465bce9..b1c7919c4afa4180a00be6b8f80a130495358649 100755 (executable)
@@ -31,10 +31,10 @@ test_expect_success 'autocorrect showing candidates' '
        git config help.autocorrect 0 &&
 
        test_must_fail git lfg 2>actual &&
-       sed -e "1,/^Did you mean this/d" actual | grep lgf &&
+       grep "^ lgf" actual &&
 
        test_must_fail git distimdist 2>actual &&
-       sed -e "1,/^Did you mean this/d" actual | grep distimdistim
+       grep "^ distimdistim" actual
 '
 
 test_expect_success 'autocorrect running commands' '