diff options
author | Charles Bailey <charles@hashpling.org> | 2008-10-25 17:38:14 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-10-27 00:19:59 +0100 |
commit | ddff8563510a2c5c675d488a02e2642306430fc1 (patch) | |
tree | b56ff072d95631d87cb08f4054226b1546dc4501 /archive.c | |
parent | git-svn: change dashed git-config to git config (diff) | |
download | git-ddff8563510a2c5c675d488a02e2642306430fc1.tar.xz git-ddff8563510a2c5c675d488a02e2642306430fc1.zip |
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 'archive.c')
-rw-r--r-- | archive.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -338,5 +338,7 @@ int write_archive(int argc, const char **argv, const char *prefix, parse_treeish_arg(argv, &args, prefix); parse_pathspec_arg(argv + 1, &args); + git_config(git_default_config, NULL); + return ar->write_archive(&args); } |