From 1981820be20538d7a70f86c5ddbe379566fd5ff2 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Sat, 3 Nov 2007 13:22:55 +0100 Subject: 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 --- builtin-blame.c | 1 + 1 file changed, 1 insertion(+) (limited to 'builtin-blame.c') diff --git a/builtin-blame.c b/builtin-blame.c index aedc294eac..55a3c0bc5e 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), ":"); } -- cgit v1.2.3