X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft4201-shortlog.sh;h=405b97119175a1c0fa75a9db30c6b1ab076cc44e;hb=df5e12f7d405b84de07c3f2dc1afe51b1d594e2c;hp=6d12efb74d8bedede8e476429b2fccd648eb05a3;hpb=41e2edf41a6d501f1b8beca7f1f0bcbe9296dcc2;p=git.git diff --git a/t/t4201-shortlog.sh b/t/t4201-shortlog.sh index 6d12efb74..405b97119 100755 --- a/t/t4201-shortlog.sh +++ b/t/t4201-shortlog.sh @@ -45,6 +45,11 @@ A U Thor (5): EOF -test_expect_success 'shortlog wrapping' 'diff -u expect out' +test_expect_success 'shortlog wrapping' 'test_cmp expect out' + +git log HEAD > log +GIT_DIR=non-existing git shortlog -w < log > out + +test_expect_success 'shortlog from non-git directory' 'test_cmp expect out' test_done