From: Mike Hommey Date: Sat, 3 Nov 2007 12:22:55 +0000 (+0100) Subject: Make git-blame fail when working tree is needed and we're not in one X-Git-Tag: v1.5.4-rc0~254^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1981820be20538d7a70f86c5ddbe379566fd5ff2;p=git.git Make git-blame fail when working tree is needed and we're not in one Signed-off-by: Mike Hommey Signed-off-by: Junio C Hamano --- diff --git a/builtin-blame.c b/builtin-blame.c index aedc294ea..55a3c0bc5 100644 --- a/builtin-blame.c +++ b/builtin-blame.c @@ -2342,6 +2342,7 @@ int cmd_blame(int argc, const char **argv, const char *prefix) * do not default to HEAD, but use the working tree * or "--contents". */ + setup_work_tree(); sb.final = fake_working_tree_commit(path, contents_from); add_pending_object(&revs, &(sb.final->object), ":"); }