• J
    patch-id: use RUN_SETUP_GENTLY · 4a73aaaf
    Jeff King 提交于
    Patch-id does not require a repository because it is just
    processing the incoming diff on stdin, but it may look at
    git config for keys like patchid.stable.
    
    Even though we do not setup_git_directory(), this works from
    the top-level of a repository because we blindly look at
    ".git/config" in this case. But as the included test
    demonstrates, it does not work from a subdirectory.
    
    We can fix it by using RUN_SETUP_GENTLY. We do not take any
    filenames from the user on the command line, so there's no
    need to adjust them via prefix_filename().
    Signed-off-by: NJeff King <peff@peff.net>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    4a73aaaf
git.c 19.9 KB