Skip to content

Commit 40e7629

Browse files
peffgitster
authored andcommitted
archive-tar: don't reload default config options
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>
1 parent 2321286 commit 40e7629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

archive-tar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ static int git_tar_config(const char *var, const char *value, void *cb)
231231
}
232232
return 0;
233233
}
234-
return git_default_config(var, value, cb);
234+
return 0;
235235
}
236236

237237
int write_tar_archive(struct archiver_args *args)

0 commit comments

Comments
 (0)