diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-03-25 14:00:48 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-03-25 14:00:48 -0700 |
commit | 63868f636fe44b67bc56753b0e6edca32568e07c (patch) | |
tree | 738718ff0c6df1586f174466a99a7ca24f1a31f5 /t/test-lib.sh | |
parent | 573f1a9cf163365637a36a6d95c670883a918352 (diff) | |
parent | bd54cf17a4acfb9555b8a83b7e74fb0274c38bb4 (diff) | |
download | git-63868f636fe44b67bc56753b0e6edca32568e07c.tar.gz |
Merge branch 'jk/empty-archive'
"git archive" reports a failure when asked to create an archive out
of an empty tree. It would be more intuitive to give an empty
archive back in such a case.
* jk/empty-archive:
archive: handle commits with an empty tree
test-lib: factor out $GIT_UNZIP setup
Diffstat (limited to 't/test-lib.sh')
-rw-r--r-- | t/test-lib.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index 9e7f6b424d..1f510252ad 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -760,3 +760,9 @@ test_lazy_prereq AUTOIDENT ' # When the tests are run as root, permission tests will report that # things are writable when they shouldn't be. test -w / || test_set_prereq SANITY + +GIT_UNZIP=${GIT_UNZIP:-unzip} +test_lazy_prereq UNZIP ' + "$GIT_UNZIP" -v + test $? -ne 127 +' |