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 <bebarino@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Stephen Boyd committed
May 17, 2009 at 03:47 UTC
5acb3e5012966cc11e54f50e0592b3639bade02c
1 file changed
+1
-1
builtin-show-branch.c
+1
-1
@@ -576,7 +576,7 @@ static void parse_reflog_param(const char *arg, int *cnt, const char **base)
576
if (*ep == ',')
577
*base = ep + 1;
578
else if (*ep)
579
- die("unrecognized reflog param '%s'", arg + 9);
579
+ die("unrecognized reflog param '%s'", arg);
580
else
581
*base = NULL;
582
if (*cnt <= 0)