Skip to content
  • Junio C Hamano's avatar
    archive: read local configuration · eb0224c6
    Junio C Hamano authored
    Since b9605bc4
    
     ("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: default avatarJunio C Hamano <gitster@pobox.com>
    eb0224c6