Skip to content

Commit

Permalink
read-tree: remove unnecessary call to setup_git_directory()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Schindelin authored and Junio C Hamano committed Aug 3, 2007
1 parent c29ba0c commit d825a97
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion builtin-read-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d825a97

Please sign in to comment.