summaryrefslogtreecommitdiff
path: root/git-stash.sh
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2012-04-14 14:37:29 +0200
committerJunio C Hamano <gitster@pobox.com>2012-04-14 16:31:02 -0700
commited3c400c6aba78fac5e5e502c89c4e8304d5ce5f (patch)
tree79ac752020cf9c9ffafee302deb2d68aa9966027 /git-stash.sh
parent6eab5f2f14806cf6a7b665d96766a59c13a41f4b (diff)
downloadgit-ed3c400c6aba78fac5e5e502c89c4e8304d5ce5f.tar.gz
stash: use eval_gettextln correctly
Otherwise, passing an invalid option, git stash -v, gave: git-stash: line 204: $'error: unknown option for \'stash save\': $option\n To provide a message, use git stash save -- \'$option\'': command not found Signed-off-by: Ross Lagerwall <rosslagerwall@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-stash.sh')
-rwxr-xr-xgit-stash.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-stash.sh b/git-stash.sh
index fe4ab28b2e..4e2c7f8331 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -199,8 +199,8 @@ save_stash () {
# $ git stash save --blah-blah 2>&1 | head -n 2
# error: unknown option for 'stash save': --blah-blah
# To provide a message, use git stash save -- '--blah-blah'
- eval_gettextln "$("error: unknown option for 'stash save': \$option
- To provide a message, use git stash save -- '\$option'")"
+ eval_gettextln "error: unknown option for 'stash save': \$option
+ To provide a message, use git stash save -- '\$option'"
usage
;;
*)