Code

difftool: Use eval to expand '--extcmd' expressions
[git.git] / git-difftool--helper.sh
index d806eaef541742f0cd3ab47c855e01749d7b6535..69f6bcebcbc32a7d34731677cd1baa9fea473085 100755 (executable)
@@ -48,11 +48,10 @@ launch_merge_tool () {
        fi
 
        if use_ext_cmd; then
-               $GIT_DIFFTOOL_EXTCMD "$LOCAL" "$REMOTE"
+               eval $GIT_DIFFTOOL_EXTCMD '"$LOCAL"' '"$REMOTE"'
        else
                run_merge_tool "$merge_tool"
        fi
-
 }
 
 if ! use_ext_cmd; then