summaryrefslogtreecommitdiff
path: root/t/t5300-pack-object.sh
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-02-01 15:17:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-02-01 21:04:11 (GMT)
commit3a2ec52e99deabbf000cb576ccde73a12934bf60 (patch)
tree78c2e8ff543f3353d3c0a52412fe02c5c7674af5 /t/t5300-pack-object.sh
parent6a301345a545ce5faf1a054d6c9bf1558dd46b0d (diff)
downloadgit-3a2ec52e99deabbf000cb576ccde73a12934bf60.zip
git-3a2ec52e99deabbf000cb576ccde73a12934bf60.tar.gz
git-3a2ec52e99deabbf000cb576ccde73a12934bf60.tar.bz2
pack-objects: remove bogus comment
The comment was introduced in b5d97e6 (pack-objects: run rev-list equivalent internally. - 2006-09-04), stating that git pack-objects [options] base-name <refs...> is acceptable and refs should be passed into rev-list. But that's not true. All arguments after base-name are ignored. Remove the comment and reject this syntax (i.e. no more arguments after base name) Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5300-pack-object.sh')
-rwxr-xr-xt/t5300-pack-object.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh
index 602806d..d9d856b 100755
--- a/t/t5300-pack-object.sh
+++ b/t/t5300-pack-object.sh
@@ -38,6 +38,10 @@ test_expect_success \
'pack without delta' \
'packname_1=$(git pack-objects --window=0 test-1 <obj-list)'
+test_expect_success \
+ 'pack-objects with bogus arguments' \
+ 'test_must_fail git pack-objects --window=0 test-1 blah blah <obj-list'
+
rm -fr .git2
mkdir .git2