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:
@ -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
|
||||
|
Reference in New Issue
Block a user