summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorblack_desk <clx814727823@gmail.com>2021-08-13 16:41:23 +0800
committerGitHub <noreply@github.com>2021-08-13 16:41:23 +0800
commit66d735acb58046c1fdbee05b09943e9259d820f9 (patch)
tree9e8de325d687ae84180957ab3f75e6e1b49bcfef /pkg/commands
parentd51b065f2a9cc6b6b0899b0bac3a1e80e04410ad (diff)
Update pkg/commands/files.go
Co-authored-by: Mark Kopenga <mkopenga@gmail.com>
Diffstat (limited to 'pkg/commands')
-rw-r--r--pkg/commands/files.go2
1 files changed, 1 insertions, 1 deletions
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