Skip to content
  • Gábor Szeder's avatar
    t5570-git-daemon: don't check the stderr of a subshell · 91538d0c
    Gábor Szeder authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    The test 'no-op fetch without "-v" is quiet' in 't5570-git-daemon.sh'
    fails when the test script is run with '-x' tracing (and using a shell
    other than a Bash version supporting BASH_XTRACEFD).  The reason for
    the failure is that the test checks the emptiness of a subshell's
    stderr, which includes the trace of commands executed in that subshell
    as well, throwing off the emptiness check.
    
    Save the stderr of 'git fetch' only instead of the whole subshell's, so
    it remains free from tracing output.
    
    After this change t5570 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>
    91538d0c