Skip to content

Commit

Permalink
git-tar-tree: Remove duplicate git_config() call
Browse files Browse the repository at this point in the history
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 <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Rene Scharfe authored and Junio C Hamano committed Sep 25, 2006
1 parent b0ed9ea commit 81b84c4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions builtin-tar-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 81b84c4

Please sign in to comment.