pkt-line: prepare buffer before handling ERR packets
[git/git.git] / t / t5516-fetch-push.sh
index 747dc4c..98ef71b 100755 (executable)
@@ -1241,7 +1241,7 @@ do
                        git fetch ../testrepo/.git $SHA1_2 &&
                        git cat-file commit $SHA1_2 &&
                        test_must_fail git fetch ../testrepo/.git $SHA1_3 2>err &&
-                       test_i18ngrep "remote error:.*not our ref" err
+                       test_i18ngrep "remote error:.*not our ref.*$SHA1_3\$" err
                )
        '
 done