Code

gettextize: git-bisect bisect_reset + $1 messages
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 14 Sep 2010 12:17:48 +0000 (12:17 +0000)
committerÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Sat, 30 Oct 2010 07:58:26 +0000 (07:58 +0000)
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>
git-bisect.sh

index 3b10ce677680f3eebf9c21bf00167206c2c906c3..64c6b81da70c5aa88e6cf4b91dca818eca9b43b8 100755 (executable)
@@ -311,8 +311,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 ;;