Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2007-11-03 15:22:55 +0300
committerJunio C Hamano <gitster@pobox.com>2007-11-06 09:47:57 +0300
commit1981820be20538d7a70f86c5ddbe379566fd5ff2 (patch)
treecda7bb3bdbe7a5f4531b1aedfeb5420a9b48c478 /builtin-blame.c
parent271bb08735435b859464c22506ba512f003a4191 (diff)
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.c1
1 files changed, 1 insertions, 0 deletions
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), ":");
}