summaryrefslogtreecommitdiffstats
path: root/t/t6020-bundle-misc.sh
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2023-07-29 22:40:27 +0200
committerJunio C Hamano <gitster@pobox.com>2023-07-31 17:33:53 +0200
commitd089a06421c86d120f50f05020ca6b833b068dcb (patch)
tree0c520abd49eb4be6ca209d85a4002484d0edf3ac /t/t6020-bundle-misc.sh
parentMerge branch 'jk/redact-h2h3-headers-fix' into maint-2.41 (diff)
downloadgit-d089a06421c86d120f50f05020ca6b833b068dcb.tar.xz
git-d089a06421c86d120f50f05020ca6b833b068dcb.zip
bundle: use OPT_PASSTHRU_ARGV
"git bundle" passes the progress control options to "git pack-objects" by parsing and then recreating them explicitly. Simplify that process by using OPT_PASSTHRU_ARGV instead. This also fixes --no-quiet, which has been doing the same as --quiet since its introduction by 79862b6b77 (bundle-create: progress output control, 2019-11-10) because it had been defined using OPT_SET_INT with a value of 0, which sets 0 when negated as well. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rwxr-xr-xt/t6020-bundle-misc.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t6020-bundle-misc.sh b/t/t6020-bundle-misc.sh
index dface8bcfe..3e6bcbf30c 100755
--- a/t/t6020-bundle-misc.sh
+++ b/t/t6020-bundle-misc.sh
@@ -619,6 +619,12 @@ test_expect_success TTY 'create --quiet disables all bundle progress' '
test_must_be_empty err
'
+test_expect_success 'bundle progress with --no-quiet' '
+ GIT_PROGRESS_DELAY=0 \
+ git bundle create --no-quiet out.bundle --all 2>err &&
+ grep "%" err
+'
+
test_expect_success 'read bundle over stdin' '
git bundle create some.bundle HEAD &&