• Jeff King's avatar
    t: prefer "git config --file" to GIT_CONFIG · f7e87141
    Jeff King authored
      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
    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>
t1302-repo-version.sh 1.32 KB