builtin-blame: set up the work_tree before the first file access
commit354e6534c1569d0d23937add8e7b55bf87bbaf20
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Fri, 9 Nov 2007 11:34:07 +0000 (9 11:34 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 10 Nov 2007 05:45:01 +0000 (9 21:45 -0800)
treee209ad157a72348fc7a715f08e0030089c347bb8
parent2729cadca22dce2b5bb994581c45a6a71daf7998
builtin-blame: set up the work_tree before the first file access

We check in cmd_blame() if the specified path is there, but we
failed to set up the working tree before that.

While at it, make setup_work_tree() just return if it was run
before.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-blame.c
setup.c