Skip to content
  • Jeff King's avatar
    pass "git -c foo=bar" params through environment · 2b64fc89
    Jeff King authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Git uses the "-c foo=bar" parameters to set a config
    variable for a single git invocation. We currently do this
    by making a list in the current process and consulting that
    list in git_config.
    
    This works fine for built-ins, but the config changes are
    silently ignored by subprocesses, including dashed externals
    and invocations to "git config" from shell scripts.
    
    This patch instead puts them in an environment variable
    which we consult when looking at config (both internally and
    via calls "git config").
    
    Signed-off-by: default avatarJeff King <peff@peff.net>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    2b64fc89