From: Ævar Arnfjörð Bjarmason Date: Sun, 08 May 2011 12:21:17 GMT Subject: [PATCH 45/48] i18n: git-bisect bisect_reset + $1 messages Message-ID: <1304857280-14773-46-git-send-email-avarab@gmail.com> In-Reply-To: <1304857280-14773-1-git-send-email-avarab@gmail.com> 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 --- git-bisect.sh | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/git-bisect.sh b/git-bisect.sh index d06fa56..7bd78ab 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -313,8 +313,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 ;; -- 1.7.4.4