shortlog: respect the --output=<file> setting
[gitweb.git] / t / t4201-shortlog.sh
index f5e63670faa0c5acc38adc17d32ae66b59d66b64..bd699e11f130d55ab37a036319ee3be448e5297b 100755 (executable)
@@ -115,7 +115,7 @@ EOF
 '
 
 test_expect_success !MINGW 'shortlog from non-git directory' '
-       git log HEAD >log &&
+       git log --no-expand-tabs HEAD >log &&
        GIT_DIR=non-existing git shortlog -w <log >out &&
        test_cmp expect out
 '
@@ -184,4 +184,10 @@ test_expect_success 'shortlog with revision pseudo options' '
        git shortlog --exclude=refs/heads/m* --all
 '
 
+test_expect_success 'shortlog with --output=<file>' '
+       git shortlog --output=shortlog master >output &&
+       test ! -s output &&
+       test_line_count = 7 shortlog
+'
+
 test_done