summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-07-25 21:27:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-07-25 21:27:10 (GMT)
commitabbd50428e1215933f83a458f2842f5a6e0a21ee (patch)
treec619e0ceb25967a413f9cc0bce1676fec9ffc01f /t
parent5bbbd576f5f9048200324424726daf4cc004ab3a (diff)
parent3bbbe467f294fae8a286e47af676fa783ad970c1 (diff)
downloadgit-abbd50428e1215933f83a458f2842f5a6e0a21ee.zip
git-abbd50428e1215933f83a458f2842f5a6e0a21ee.tar.gz
git-abbd50428e1215933f83a458f2842f5a6e0a21ee.tar.bz2
Merge branch 'js/bundle-verify-require-object-store' into maint
"git bundle verify" needs to see if prerequisite objects exist in the receiving repository, but the command did not check if we are in a repository upfront, which has been corrected. * js/bundle-verify-require-object-store: bundle verify: error out if called without an object database
Diffstat (limited to 't')
-rwxr-xr-xt/t5607-clone-bundle.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t5607-clone-bundle.sh b/t/t5607-clone-bundle.sh
index cf39e9e..2a0fb15 100755
--- a/t/t5607-clone-bundle.sh
+++ b/t/t5607-clone-bundle.sh
@@ -14,6 +14,12 @@ test_expect_success 'setup' '
git tag -d third
'
+test_expect_success '"verify" needs a worktree' '
+ git bundle create tip.bundle -1 master &&
+ test_must_fail nongit git bundle verify ../tip.bundle 2>err &&
+ test_i18ngrep "need a repository" err
+'
+
test_expect_success 'annotated tags can be excluded by rev-list options' '
git bundle create bundle --all --since=7.Apr.2005.15:14:00.-0700 &&
git ls-remote bundle > output &&