unescape another string

This commit is contained in:
Jesse Duffield 2019-11-21 22:17:18 +11:00
parent bad06bb634
commit 3dd1daacdc
2 changed files with 7 additions and 3 deletions

View file

@ -9,7 +9,8 @@ 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")
unescaped := "git for-each-ref --format='%(refname:strip=2)' refs/remotes"
remoteBranchesStr, err := c.OSCommand.RunCommandWithOutput(unescaped)
if err != nil {
return nil, err
}