Skip to content
  • Gábor Szeder's avatar
    t5500-fetch-pack: don't check the stderr of a subshell · fa06eb6f
    Gábor Szeder authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    Three "missing reference" tests in 't5500-fetch-pack.sh' fail when the
    test script is run with '-x' tracing (and using a shell other than a
    Bash version supporting BASH_XTRACEFD).  The reason for those failures
    is that the tests check a subshell's stderr, which includes the trace
    of executing commands in that subshell as well, throwing off the
    comparison with the expected output.
    
    Save the stderr of 'git fetch-pack' only instead of the whole
    subshell, so it remains free from tracing output.
    
    After this change t5500 passes with '-x', even when running with
    /bin/sh.
    
    Signed-off-by: default avatarSZEDER Gábor <szeder.dev@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    fa06eb6f