update-ref --stdin: improve error messages for invalid values
authorMichael Haggerty <redacted>
Mon, 7 Apr 2014 13:48:01 +0000 (15:48 +0200)
committerJunio C Hamano <redacted>
Mon, 7 Apr 2014 19:09:12 +0000 (12:09 -0700)
commit1746ef4e9d869fb0f54194bb225604eb61a77501
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/update-ref.c
t/t1400-update-ref.sh
git clone https://git.99rst.org/PROJECT