From 66d735acb58046c1fdbee05b09943e9259d820f9 Mon Sep 17 00:00:00 2001 From: black_desk Date: Fri, 13 Aug 2021 16:41:23 +0800 Subject: Update pkg/commands/files.go Co-authored-by: Mark Kopenga --- pkg/commands/files.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/commands') diff --git a/pkg/commands/files.go b/pkg/commands/files.go index 157fa843b..51523ea5f 100644 --- a/pkg/commands/files.go +++ b/pkg/commands/files.go @@ -250,7 +250,7 @@ func (c *GitCommand) ShowFileDiffCmdStr(from string, to string, reverse bool, fi reverseFlag = " -R " } - return fmt.Sprintf("git diff --submodule --no-ext-diff --no-renames --color=%s %s %s %s -- \"%s\"", colorArg, from, to, reverseFlag, fileName) + return fmt.Sprintf(`git diff --submodule --no-ext-diff --no-renames --color=%s %s %s %s -- "%s"`, colorArg, from, to, reverseFlag, fileName) } // CheckoutFile checks out the file for the given commit -- cgit v1.2.3