From: Ross Lagerwall Date: Sat, 14 Apr 2012 12:37:29 +0000 (+0200) Subject: stash: use eval_gettextln correctly X-Git-Tag: v1.7.10.2~33^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ed3c400c6aba78fac5e5e502c89c4e8304d5ce5f;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-stash.sh b/git-stash.sh index fe4ab28b2..4e2c7f833 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 ;; *)