diff options
author | black_desk <clx814727823@gmail.com> | 2021-08-13 16:41:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-13 16:41:23 +0800 |
commit | 66d735acb58046c1fdbee05b09943e9259d820f9 (patch) | |
tree | 9e8de325d687ae84180957ab3f75e6e1b49bcfef /pkg | |
parent | d51b065f2a9cc6b6b0899b0bac3a1e80e04410ad (diff) |
Update pkg/commands/files.go
Co-authored-by: Mark Kopenga <mkopenga@gmail.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/commands/files.go | 2 |
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 |