@matheusbsbs / matheus-bagliano / commits / d825a97495
Fork 0

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 <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Schindelin committed Aug 2, 2007 at 22:36 UTC d825a974950b397c6ffbf44b84a7158bfcaba819
1 file changed -1
builtin-read-tree.c
-1
@@ -97,7 +97,6 @@ int cmd_read_tree(int argc, const char **argv, const char *unused_prefix)
97 memset(&opts, 0, sizeof(opts));
98 opts.head_idx = -1;
99
100 - setup_git_directory();
100 git_config(git_default_config);
101
102 newfd = hold_locked_index(&lock_file, 1);