Code

i18n: git-bisect bisect_reset + $1 messages
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 21 May 2011 18:44:26 +0000 (18:44 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 21 May 2011 18:57:18 +0000 (11:57 -0700)
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>
git-bisect.sh

index bc7e16eb8400198ceb5157acae492ae2a6659aa4..4dc28ecdf9757f19cbd30da4251b171add913706 100755 (executable)
@@ -319,8 +319,10 @@ bisect_reset() {
        }
        case "$#" in
        0) branch=$(cat "$GIT_DIR/BISECT_START") ;;
-       1) git rev-parse --quiet --verify "$1^{commit}" > /dev/null ||
-              die "'$1' is not a valid commit"
+       1) git rev-parse --quiet --verify "$1^{commit}" > /dev/null || {
+              invalid="$1"
+              die "$(eval_gettext "'\$invalid' is not a valid commit")"
+          }
           branch="$1" ;;
        *)
            usage ;;