diff options
-rwxr-xr-x | t/t5541-http-push-smart.sh | 2 | ||||
-rw-r--r-- | transport-helper.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/t/t5541-http-push-smart.sh b/t/t5541-http-push-smart.sh index 9c61dccc24..8ca50f8b18 100755 --- a/t/t5541-http-push-smart.sh +++ b/t/t5541-http-push-smart.sh @@ -519,7 +519,7 @@ test_expect_success 'report error server does not provide ref status' ' rev-parse --verify refs/tags/will-fail && cat >expect <<-EOF && To $HTTPD_URL/smart/no_report - ! HEAD:refs/tags/will-fail [remote rejected] (expecting report) + ! HEAD:refs/tags/will-fail [remote failure] (remote failed to report status) Done EOF test_cmp expect actual diff --git a/transport-helper.c b/transport-helper.c index 4be035edb8..56e36a4cf4 100644 --- a/transport-helper.c +++ b/transport-helper.c @@ -845,6 +845,10 @@ static int push_update_ref_status(struct strbuf *buf, forced = 1; FREE_AND_NULL(msg); } + else if (!strcmp(msg, "expecting report")) { + status = REF_STATUS_EXPECTING_REPORT; + FREE_AND_NULL(msg); + } } if (state->hint) |