summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2011-05-21 18:44:16 +0000
committerJunio C Hamano <gitster@pobox.com>2011-05-21 11:57:17 -0700
commit155da748ef4938382db50ab5784b2a3971932c08 (patch)
treedbb6d3faf98ed9058f8d2c772e15541bc858c8dd
parent777b6f13734d82a2775abdcc7220faede5e1aea8 (diff)
downloadgit-155da748ef4938382db50ab5784b2a3971932c08.tar.gz
i18n: git-stash die + eval_gettext $1 messages
Gettextize a messages that used 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>
-rwxr-xr-xgit-stash.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/git-stash.sh b/git-stash.sh
index 509e14f051..ede35a533a 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -299,7 +299,10 @@ parse_flags_and_rev()
;;
esac
- REV=$(git rev-parse --quiet --symbolic --verify $1 2>/dev/null) || die "$1 is not valid reference"
+ REV=$(git rev-parse --quiet --symbolic --verify $1 2>/dev/null) || {
+ reference="$1"
+ die "$(eval_gettext "\$reference is not valid reference")"
+ }
i_commit=$(git rev-parse --quiet --verify $REV^2 2>/dev/null) &&
set -- $(git rev-parse $REV $REV^1 $REV: $REV^1: $REV^2: 2>/dev/null) &&