summaryrefslogtreecommitdiff
path: root/git-bisect.sh
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2011-05-21 18:44:26 +0000
committerJunio C Hamano <gitster@pobox.com>2011-05-21 11:57:18 -0700
commit7d0c2d6fbf3141cb4402987cbc2711c75490d217 (patch)
tree98d759161bc37d5f55c49cb029e6b17775371ac4 /git-bisect.sh
parent0920925584f4a306daf723d1fbdf75c215755f09 (diff)
downloadgit-7d0c2d6fbf3141cb4402987cbc2711c75490d217.tar.gz
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>
Diffstat (limited to 'git-bisect.sh')
-rwxr-xr-xgit-bisect.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/git-bisect.sh b/git-bisect.sh
index bc7e16eb84..4dc28ecdf9 100755
--- a/git-bisect.sh
+++ b/git-bisect.sh
@@ -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 ;;