Skip to content

Commit 5acb3e5

Browse files
bebarinogitster
authored andcommitted
show-branch: Fix die message in parse_reflog_param()
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 076c323 commit 5acb3e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin-show-branch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ static void parse_reflog_param(const char *arg, int *cnt, const char **base)
576576
if (*ep == ',')
577577
*base = ep + 1;
578578
else if (*ep)
579-
die("unrecognized reflog param '%s'", arg + 9);
579+
die("unrecognized reflog param '%s'", arg);
580580
else
581581
*base = NULL;
582582
if (*cnt <= 0)

0 commit comments

Comments
 (0)