Fix httpd tests that broke when non-ff push advice changed
authorChristopher Tiwald <christiwald@gmail.com>
Thu, 12 Apr 2012 17:56:28 +0000 (13:56 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Apr 2012 20:48:52 +0000 (13:48 -0700)
Signed-off-by: Christopher Tiwald <christiwald@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-httpd.sh
t/t5541-http-push.sh

index f7dc0781d5d0ec5afd7f1d0898bffa17a9b1b00e..094d49089389c9e8dbf8c561ccc133065552fc81 100644 (file)
@@ -160,6 +160,6 @@ test_http_push_nonff() {
        '
 
        test_expect_success 'non-fast-forward push shows help message' '
-               test_i18ngrep "To prevent you from losing history, non-fast-forward updates were rejected" output
+               test_i18ngrep "Updates were rejected because" output
        '
 }
index cc6f081711002b42bcf6b2cb26287dcc56852a06..57c3e48dda34c19711341042f96739594eafb239 100755 (executable)
@@ -167,7 +167,7 @@ test_expect_success 'push fails for non-fast-forward refs unmatched by remote he
 '
 
 test_expect_success 'push fails for non-fast-forward refs unmatched by remote helper: our output' '
-       test_i18ngrep "To prevent you from losing history, non-fast-forward updates were rejected" \
+       test_i18ngrep "Updates were rejected because" \
                output
 '