• Jeff King's avatar
    t: prefer "git config --file" to GIT_CONFIG · f7e87141
    Jeff King authored
    Doing:
    
      GIT_CONFIG=foo git config ...
    
    is equivalent to:
    
      git config --file=foo ...
    
    The latter is easier to read and slightly less error-prone,
    because of issues with one-shot variables and shell
    functions (e.g., you cannot use the former with
    test_must_fail).
    
    Note that we explicitly leave one case in t1300 which checks
    the same operation on both GIT_CONFIG and "git config
    --file". They are equivalent in the code these days, but
    this will make sure it remains so.
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    f7e87141
t9154-git-svn-fancy-glob.sh 1.54 KB