From: Johannes Schindelin Date: Thu, 2 Aug 2007 21:36:37 +0000 (+0100) Subject: read-tree: remove unnecessary call to setup_git_directory() X-Git-Tag: v1.5.3-rc4~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d825a974950b397c6ffbf44b84a7158bfcaba819;p=git.git read-tree: remove unnecessary call to setup_git_directory() read-tree is already marked with RUN_SETUP in git.c, so there is no need to call setup_git_directory() a second time. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/builtin-read-tree.c b/builtin-read-tree.c index 41f811023..a3b17a3bd 100644 --- a/builtin-read-tree.c +++ b/builtin-read-tree.c @@ -97,7 +97,6 @@ int cmd_read_tree(int argc, const char **argv, const char *unused_prefix) memset(&opts, 0, sizeof(opts)); opts.head_idx = -1; - setup_git_directory(); git_config(git_default_config); newfd = hold_locked_index(&lock_file, 1);