Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
shortlog: do not require to run from inside a git repository
[gitweb.git]
/
t
/
t4201-shortlog.sh
diff --git
a/t/t4201-shortlog.sh
b/t/t4201-shortlog.sh
index 6d12efb74d8bedede8e476429b2fccd648eb05a3..eef4cafda99729977af9bee2eca83493814faede 100755
(executable)
--- 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