aboutsummaryrefslogtreecommitdiff
path: root/builtin-archive.c
diff options
context:
space:
mode:
authorCharles Bailey <charles@hashpling.org>2008-10-25 11:38:14 -0400
committerJunio C Hamano <gitster@pobox.com>2008-10-26 16:19:59 -0700
commitddff8563510a2c5c675d488a02e2642306430fc1 (patch)
treeb56ff072d95631d87cb08f4054226b1546dc4501 /builtin-archive.c
parent225f1d0c6af36722e6a52ab0563a19e86e51933d (diff)
downloadgit-ddff8563510a2c5c675d488a02e2642306430fc1.tar.gz
git-ddff8563510a2c5c675d488a02e2642306430fc1.tar.xz
git-archive: work in bare repos
This moves the call to git_config to a place where it doesn't break the logic for using git archive in a bare repository but retains the fix to make git archive respect core.autocrlf. Tests are by René Scharfe. Signed-off-by: Charles Bailey <charles@hashpling.org> Tested-by: Deskin Miller <deskinm@umich.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-archive.c')
-rw-r--r--builtin-archive.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin-archive.c b/builtin-archive.c
index 432ce2acc..5ceec433f 100644
--- a/builtin-archive.c
+++ b/builtin-archive.c
@@ -111,8 +111,6 @@ int cmd_archive(int argc, const char **argv, const char *prefix)
{
const char *remote = NULL;
- git_config(git_default_config, NULL);
-
remote = extract_remote_arg(&argc, argv);
if (remote)
return run_remote_archiver(remote, argc, argv);