shortlog: respect the --output=<file> setting
[gitweb.git] / t / t4201-shortlog.sh
index a9773658f09e92578b489b1b5b65fc87599cb8ae..bd699e11f130d55ab37a036319ee3be448e5297b 100755 (executable)
@@ -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