1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Quote branch names and remote names

This commit is contained in:
Ryooooooga
2021-10-06 23:26:25 +09:00
parent e19b4fe369
commit 292b780bd8
5 changed files with 20 additions and 20 deletions

View File

@ -29,7 +29,7 @@ func (c *GitCommand) DeleteRemoteBranch(remoteName string, branchName string, pr
func (c *GitCommand) CheckRemoteBranchExists(branchName string) bool {
_, err := c.OSCommand.RunCommandWithOutput(
"git show-ref --verify -- refs/remotes/origin/%s",
branchName,
c.OSCommand.Quote(branchName),
)
return err == nil