summaryrefslogtreecommitdiffstats
path: root/pkg/commands
diff options
context:
space:
mode:
authorMark Kopenga <mkopenga@gmail.com>2021-08-13 10:47:40 +0200
committerGitHub <noreply@github.com>2021-08-13 10:47:40 +0200
commita2ee52142c2fe28b10d8ff5985dfd7d973a25a83 (patch)
tree9e8de325d687ae84180957ab3f75e6e1b49bcfef /pkg/commands
parenta3a14e9ff47683c5d4e926ec5630935c8587c11c (diff)
parent66d735acb58046c1fdbee05b09943e9259d820f9 (diff)
Merge pull request #1433 from black-desk/fix-space-in-filename
fix empty patch panel when spaces in filename
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 f4588aac5..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