summaryrefslogtreecommitdiffstats
path: root/pkg/commands/loading_commit_files.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands/loading_commit_files.go')
-rw-r--r--pkg/commands/loading_commit_files.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/commands/loading_commit_files.go b/pkg/commands/loading_commit_files.go
index bddddc761..95d98d668 100644
--- a/pkg/commands/loading_commit_files.go
+++ b/pkg/commands/loading_commit_files.go
@@ -1,6 +1,7 @@
package commands
import (
+ "fmt"
"strings"
"github.com/jesseduffield/lazygit/pkg/commands/models"
@@ -13,7 +14,7 @@ func (c *GitCommand) GetFilesInDiff(from string, to string, reverse bool) ([]*mo
reverseFlag = " -R "
}
- filenames, err := c.RunCommandWithOutput("git diff --submodule --no-ext-diff --name-status -z --no-renames %s %s %s", reverseFlag, from, to)
+ filenames, err := c.RunWithOutput(c.NewCmdObj(fmt.Sprintf("git diff --submodule --no-ext-diff --name-status -z --no-renames %s %s %s", reverseFlag, from, to)))
if err != nil {
return nil, err
}