From d825a974950b397c6ffbf44b84a7158bfcaba819 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 2 Aug 2007 22:36:37 +0100 Subject: [PATCH] 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 --- builtin-read-tree.c | 1 - 1 file changed, 1 deletion(-) 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); -- 2.26.2