]> granicus.if.org Git - git/commit
t5530: check protocol response for "not our ref"
authorJeff King <peff@peff.net>
Sat, 13 Apr 2019 05:53:09 +0000 (01:53 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Apr 2019 05:00:51 +0000 (14:00 +0900)
commit6963a4e4e1fe7b4668a954eeb05feab98d625ddc
treebdca47e57534aaf3a0eb05ad1550b2dd0527eda4
parent98024d1cb6cc2b6d9a0672c60d0f8efcda5b5555
t5530: check protocol response for "not our ref"

Back in 9f9aa76130 (upload-pack: Improve error message when bad ref
requested, 2010-07-31), we added a test to make sure that we die with a
sensible message when the client asks for an object we don't have.

Much later, in bdb31eada7 (upload-pack: report "not our ref" to client,
2017-02-23), we started reporting that information via an "ERR" line in
the protocol. Let's check that part, as well.

While we're touching this test, let's drop the "-q" on the grep calls.
Our usual test style just relies on --verbose to control output.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5530-upload-pack-error.sh