| 109 | } |
| 110 | |
| 111 | func (branch Branch) hasRemoteBranch(configuration config.Configuration) bool { |
| 112 | remoteBranches := gitRemoteBranches() |
| 113 | remoteBranch := branch.remote(configuration).Name |
| 114 | say.Debug("Remote Branches: " + strings.Join(remoteBranches, "\n")) |
| 115 | say.Debug("Remote Branch: " + remoteBranch) |
| 116 | |
| 117 | for i := 0; i < len(remoteBranches); i++ { |
| 118 | if remoteBranches[i] == remoteBranch { |
| 119 | return true |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | return false |
| 124 | } |
| 125 | |
| 126 | func (branch Branch) hasLocalBranch() bool { |
| 127 | localBranches := gitBranches() |