]> git.ipfire.org Git - thirdparty/git.git/commit - archive.h
archive: read local configuration
authorJunio C Hamano <gitster@pobox.com>
Tue, 22 Nov 2016 21:37:04 +0000 (13:37 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Nov 2016 21:55:20 +0000 (13:55 -0800)
commiteb0224c617ba6b4299f2a9f85d6c4b3b5e10abc0
treee619ede7551b1afd632defa778924abafabc87d4
parent3f0ec0687d95e0f53c899f964d769ca1846874da
archive: read local configuration

Since b9605bc4f2 ("config: only read .git/config from configured
repos", 2016-09-12), we do not read from ".git/config" unless we
know we are in a repository.  "git archive" however didn't do the
repository discovery and instead relied on the old behaviour.

Teach the command to run a "gentle" version of repository discovery
so that local configuration variables are honoured.

[jc: stole tests from peff]
Signed-off-by: Junio C Hamano <gitster@pobox.com>
archive.c
archive.h
builtin/archive.c
builtin/upload-archive.c
git.c
t/t5000-tar-tree.sh