From: Rene Scharfe Date: Sun, 24 Sep 2006 15:30:44 +0000 (+0200) Subject: git-tar-tree: Remove duplicate git_config() call X-Git-Tag: v1.4.3-rc1~42 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=81b84c42d645dd9c30b77f804abc07e128dc490b;p=git.git git-tar-tree: Remove duplicate git_config() call generate_tar() eventually calls write_tar_archive() which does all the "real" work and which also calls git_config(git_tar_config). We only need to do this once. Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- diff --git a/builtin-tar-tree.c b/builtin-tar-tree.c index 437eb726a..82b4951f3 100644 --- a/builtin-tar-tree.c +++ b/builtin-tar-tree.c @@ -267,8 +267,6 @@ static int generate_tar(int argc, const char **argv, const char *prefix) int result; char *base = NULL; - git_config(git_tar_config); - memset(&args, 0, sizeof(args)); if (argc != 2 && argc != 3) usage(tar_tree_usage);