summaryrefslogtreecommitdiff
path: root/builtin-show-branch.c
diff options
context:
space:
mode:
authorStephen Boyd <bebarino@gmail.com>2009-05-17 10:47:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-05-17 19:05:22 (GMT)
commit5acb3e5012966cc11e54f50e0592b3639bade02c (patch)
treebde70fb9b3a713df43d575d64b79d5724582670c /builtin-show-branch.c
parent076c32370d8a6ac2fb57b2a55c674942e106f8ab (diff)
downloadgit-5acb3e5012966cc11e54f50e0592b3639bade02c.zip
git-5acb3e5012966cc11e54f50e0592b3639bade02c.tar.gz
git-5acb3e5012966cc11e54f50e0592b3639bade02c.tar.bz2
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>
Diffstat (limited to 'builtin-show-branch.c')
-rw-r--r--builtin-show-branch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-show-branch.c b/builtin-show-branch.c
index 828e6f8..c3afabb 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)