From: Ævar Arnfjörð Bjarmason Date: Tue, 14 Sep 2010 12:17:48 +0000 (+0000) Subject: gettextize: git-bisect bisect_reset + $1 messages X-Git-Tag: ko-pu~10^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ebda28b216d83e0949eaebab7d4d18d4b036815f;p=git.git gettextize: 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 --- diff --git a/git-bisect.sh b/git-bisect.sh index 3b10ce677..64c6b81da 100755 --- a/git-bisect.sh +++ b/git-bisect.sh @@ -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 ;;