Skip to content

Commit ed3c400

Browse files
rosslagerwallgitster
authored andcommitted
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>
1 parent 6eab5f2 commit ed3c400

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

git-stash.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ save_stash () {
199199
# $ git stash save --blah-blah 2>&1 | head -n 2
200200
# error: unknown option for 'stash save': --blah-blah
201201
# To provide a message, use git stash save -- '--blah-blah'
202-
eval_gettextln "$("error: unknown option for 'stash save': \$option
203-
To provide a message, use git stash save -- '\$option'")"
202+
eval_gettextln "error: unknown option for 'stash save': \$option
203+
To provide a message, use git stash save -- '\$option'"
204204
usage
205205
;;
206206
*)

0 commit comments

Comments
 (0)