From 5acb3e5012966cc11e54f50e0592b3639bade02c Mon Sep 17 00:00:00 2001 From: Stephen Boyd Date: Sun, 17 May 2009 03:47:02 -0700 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- builtin-show-branch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin-show-branch.c b/builtin-show-branch.c index 828e6f86de..c3afabbe91 100644 --- a/builtin-show-branch.c +++ b/builtin-show-branch.c @@ -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) -- 2.32.0.93.g670b81a890