Skip to content

Commit 7d0c2d6

Browse files
avargitster
authored andcommitted
i18n: git-bisect bisect_reset + $1 messages
ettextize bisect_reset messages that use the $1 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 0920925 commit 7d0c2d6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

git-bisect.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,10 @@ bisect_reset() {
319319
}
320320
case "$#" in
321321
0) branch=$(cat "$GIT_DIR/BISECT_START") ;;
322-
1) git rev-parse --quiet --verify "$1^{commit}" > /dev/null ||
323-
die "'$1' is not a valid commit"
322+
1) git rev-parse --quiet --verify "$1^{commit}" > /dev/null || {
323+
invalid="$1"
324+
die "$(eval_gettext "'\$invalid' is not a valid commit")"
325+
}
324326
branch="$1" ;;
325327
*)
326328
usage ;;

0 commit comments

Comments
 (0)