diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2014-04-07 15:48:08 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-04-07 12:09:14 -0700 |
commit | 726f69166ff0ac3fef0a9a0241f09a7d9f0fa48f (patch) | |
tree | 81bb15bdad41e26280da49af138dbc0eb57fa017 /builtin/update-ref.c | |
parent | ff6ee39525244b7c1bca1953743fdcc14605a031 (diff) | |
download | git-726f69166ff0ac3fef0a9a0241f09a7d9f0fa48f.tar.gz git-726f69166ff0ac3fef0a9a0241f09a7d9f0fa48f.tar.xz |
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/update-ref.c')
-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 6f3b9095c..0d5f1d076 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); } |