Skip to content

Commit

Permalink
archive-tar: don't reload default config options
Browse files Browse the repository at this point in the history
We load our own tar-specific config, and then chain to
git_default_config. This is pointless, as our caller should
already have loaded the default config. It also introduces a
needless inconsistency with the zip archiver, which does not
look at the config files at all (and therefore relies on the
caller to have loaded config).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
peff authored and gitster committed Jun 22, 2011
1 parent 2321286 commit 40e7629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion archive-tar.c
Expand Up @@ -231,7 +231,7 @@ static int git_tar_config(const char *var, const char *value, void *cb)
}
return 0;
}
return git_default_config(var, value, cb);
return 0;
}

int write_tar_archive(struct archiver_args *args)
Expand Down

0 comments on commit 40e7629

Please sign in to comment.