1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

give RunCommand the same input signature as fmt.Sprintf

This commit is contained in:
Jesse Duffield
2019-11-21 21:09:14 +11:00
parent 3c13229145
commit e36ee0b4f1
6 changed files with 59 additions and 61 deletions

View File

@ -9,7 +9,7 @@ import (
func (c *GitCommand) GetRemotes() ([]*Remote, error) {
// get remote branches
remoteBranchesStr, err := c.OSCommand.RunCommandWithOutput("git for-each-ref --format='%(refname:strip=2)' refs/remotes")
remoteBranchesStr, err := c.OSCommand.RunCommandWithOutput(`git for-each-ref --format='%(refname:strip=2)' refs/remotes`)
if err != nil {
return nil, err
}