update-ref --stdin: improve error messages for invalid values
commit1746ef4e9d869fb0f54194bb225604eb61a77501
authorMichael Haggerty <mhagger@alum.mit.edu>
Mon, 7 Apr 2014 13:48:01 +0000 (7 15:48 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Apr 2014 19:09:12 +0000 (7 12:09 -0700)
tree8754a6752a6793e43a910bf94be96257a933e157
parented410e611dc39dc7e845f27a660b76b7d0ecbab6
update-ref --stdin: improve error messages for invalid values

If an invalid value is passed to "update-ref --stdin" as <oldvalue> or
<newvalue>, include the command and the name of the reference at the
beginning of the error message.  Update the tests accordingly.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/update-ref.c
t/t1400-update-ref.sh