summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Jonas Fonseca <fonseca@diku.dk>2008-03-14 22:35:24 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-03-15 00:49:15 -0700
commitabe549e1791822b3105648452b1f8907f8fdb26a (patch)
tree3686f073dfc5e8073a41925d371c085507c327cc /t
parentMerge branch 'maint' (diff)
downloadtgif-abe549e1791822b3105648452b1f8907f8fdb26a.tar.xz
shortlog: do not require to run from inside a git repository
Once upon a time shortlog could be run from a non-git directory and still do its job. Fix this regression and add a small test for it. Signed-off-by: Jonas Fonseca <fonseca@diku.dk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t4201-shortlog.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t4201-shortlog.sh b/t/t4201-shortlog.sh
index 6d12efb74d..eef4cafda9 100755
--- a/t/t4201-shortlog.sh
+++ b/t/t4201-shortlog.sh
@@ -47,4 +47,9 @@ EOF
test_expect_success 'shortlog wrapping' 'diff -u expect out'
+git log HEAD > log
+GIT_DIR=non-existing git shortlog -w < log > out
+
+test_expect_success 'shortlog from non-git directory' 'diff -u expect out'
+
test_done