Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit b79faa9

Browse files
committed
Merge branch 'al/mergetool-printf-fix' into maint
* al/mergetool-printf-fix: difftool--helper: fix printf usage git-mergetool: print filename when it contains %
2 parents 75288cc + 2a9ccff commit b79faa9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

git-difftool--helper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ launch_merge_tool () {
4040
# the user with the real $MERGED name before launching $merge_tool.
4141
if should_prompt
4242
then
43-
printf "\nViewing: '$MERGED'\n"
43+
printf "\nViewing: '%s'\n" "$MERGED"
4444
if use_ext_cmd
4545
then
4646
printf "Launch '%s' [Y/n]: " \

git-mergetool.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ then
440440
fi
441441

442442
printf "Merging:\n"
443-
printf "$files\n"
443+
printf "%s\n" "$files"
444444

445445
IFS='
446446
'

0 commit comments

Comments
 (0)