diff options
author | Mike Hommey <mh@glandium.org> | 2007-11-03 13:22:55 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-05 22:47:57 -0800 |
commit | 1981820be20538d7a70f86c5ddbe379566fd5ff2 (patch) | |
tree | cda7bb3bdbe7a5f4531b1aedfeb5420a9b48c478 /builtin-blame.c | |
parent | 271bb08735435b859464c22506ba512f003a4191 (diff) | |
download | git-1981820be20538d7a70f86c5ddbe379566fd5ff2.tar.gz git-1981820be20538d7a70f86c5ddbe379566fd5ff2.tar.xz |
Make git-blame fail when working tree is needed and we're not in one
Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-blame.c')
-rw-r--r-- | builtin-blame.c | 1 |
1 files changed, 1 insertions, 0 deletions
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), ":"); } |