Discard stderr when testing for git