diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-08-02 22:36:37 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-08-02 17:26:07 -0700 |
commit | d825a974950b397c6ffbf44b84a7158bfcaba819 (patch) | |
tree | aa9a120e3d4445b4c79470c47fc32eed2fd312da /builtin-read-tree.c | |
parent | c29ba0c3edc513259eee572f9c9257ec7cd94a56 (diff) | |
download | git-d825a974950b397c6ffbf44b84a7158bfcaba819.tar.gz |
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>
Diffstat (limited to 'builtin-read-tree.c')
-rw-r--r-- | builtin-read-tree.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin-read-tree.c b/builtin-read-tree.c index 41f8110238..a3b17a3bd9 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); |