Skip to content

Commit 0920925

Browse files
avargitster
authored andcommitted
i18n: git-bisect bisect_run + $@ messages
Gettextize bisect_run messages that use the $@ variable. Since it's subroutine local we have to provide an alias for it for eval_gettext. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 15eaa04 commit 0920925

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

git-bisect.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,14 +380,18 @@ bisect_run () {
380380

381381
while true
382382
do
383-
echo "running $@"
383+
command="$@"
384+
eval_gettext "running \$command"; echo
384385
"$@"
385386
res=$?
386387

387388
# Check for really bad run error.
388389
if [ $res -lt 0 -o $res -ge 128 ]; then
389-
echo >&2 "bisect run failed:"
390-
echo >&2 "exit code $res from '$@' is < 0 or >= 128"
390+
(
391+
eval_gettext "bisect run failed:
392+
exit code \$res from '\$command' is < 0 or >= 128" &&
393+
echo
394+
) >&2
391395
exit $res
392396
fi
393397

0 commit comments

Comments
 (0)