Skip to content
  • Jeff King's avatar
    t: stop using GIT_CONFIG to cross repo boundaries · 3cc6a6f0
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Some tests want to check or set config in another
    repository. E.g., t1000 creates repositories and makes sure
    that their core.bare and core.worktree settings are what we
    expect. We can do this with:
    
      GIT_CONFIG=$repo/.git/config git config ...
    
    but it better shows the intent to just enter the repository
    and let "git config" do the normal lookups:
    
      (cd $repo && git config ...)
    
    In theory, this would cause us to use an extra subshell, but
    in all such cases, we are actually already in a subshell.
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    3cc6a6f0