diff options
author | Ryooooooga <eial5q265e5@gmail.com> | 2021-10-06 23:26:25 +0900 |
---|---|---|
committer | Ryooooooga <eial5q265e5@gmail.com> | 2021-10-08 18:36:05 +0900 |
commit | 292b780bd8e628cea253226f97849f65cd097463 (patch) | |
tree | 9215fb5ccc0efb846a1c06f5f341d2ac3abfef38 /pkg/commands/sync.go | |
parent | e19b4fe369c0ff0947c1980dbc579e88f528fd68 (diff) |
Quote branch names and remote names
Diffstat (limited to 'pkg/commands/sync.go')
-rw-r--r-- | pkg/commands/sync.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/sync.go b/pkg/commands/sync.go index e032d0a65..7de5b8efd 100644 --- a/pkg/commands/sync.go +++ b/pkg/commands/sync.go @@ -19,7 +19,7 @@ func (c *GitCommand) Push(branchName string, force bool, upstream string, args s setUpstreamArg := "" if upstream != "" { - setUpstreamArg = "--set-upstream " + upstream + setUpstreamArg = "--set-upstream " + c.OSCommand.Quote(upstream) } cmd := fmt.Sprintf("git push %s %s %s %s", followTagsFlag, forceFlag, setUpstreamArg, args) |