diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2014-04-07 17:48:08 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-04-07 23:09:14 +0400 |
commit | 726f69166ff0ac3fef0a9a0241f09a7d9f0fa48f (patch) | |
tree | 81bb15bdad41e26280da49af138dbc0eb57fa017 /builtin | |
parent | ff6ee39525244b7c1bca1953743fdcc14605a031 (diff) |
update-ref --stdin: improve the error message for unexpected EOF
Distinguish this error from the error that an argument is missing for
another reason. Update the tests accordingly.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/update-ref.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/update-ref.c b/builtin/update-ref.c index 6f3b9095cf..0d5f1d076a 100644 --- a/builtin/update-ref.c +++ b/builtin/update-ref.c @@ -178,8 +178,8 @@ static int parse_next_sha1(struct strbuf *input, const char **next, eof: die(flags & PARSE_SHA1_OLD ? - "%s %s missing <oldvalue>" : - "%s %s missing <newvalue>", + "%s %s: unexpected end of input when reading <oldvalue>" : + "%s %s: unexpected end of input when reading <newvalue>", command, refname); } |