Skip to content

Commit

Permalink
show-branch: Fix die message in parse_reflog_param()
Browse files Browse the repository at this point in the history
Commit 76a44c5 (show-branch --reflog: show the reflog message at the
top, 2007-01-19) introduced parse_reflog_param(). The die() call was
incorrectly passed arg + 9, when it should have been passed arg.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Stephen Boyd authored and Junio C Hamano committed May 17, 2009
1 parent 076c323 commit 5acb3e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin-show-branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ static void parse_reflog_param(const char *arg, int *cnt, const char **base)
if (*ep == ',')
*base = ep + 1;
else if (*ep)
die("unrecognized reflog param '%s'", arg + 9);
die("unrecognized reflog param '%s'", arg);
else
*base = NULL;
if (*cnt <= 0)
Expand Down

0 comments on commit 5acb3e5

Please sign in to comment.