summaryrefslogtreecommitdiffstats
path: root/pkg/commands/loading_remotes.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2019-11-21 22:17:18 +1100
committerJesse Duffield <jessedduffield@gmail.com>2019-11-21 22:17:18 +1100
commit3dd1daacdc99b7eb9c4828154c7ece436beb98f4 (patch)
tree36115b81a2d2b393666ffcd3bda36077316eb386 /pkg/commands/loading_remotes.go
parentbad06bb634917d0f4f21c4f54823cf5f2cc3c392 (diff)
unescape another stringv0.11.2
Diffstat (limited to 'pkg/commands/loading_remotes.go')
-rw-r--r--pkg/commands/loading_remotes.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/commands/loading_remotes.go b/pkg/commands/loading_remotes.go
index f4f1b4a01..a56e8571a 100644
--- a/pkg/commands/loading_remotes.go
+++ b/pkg/commands/loading_remotes.go
@@ -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
}