(remoteBranch)
| 31 | } |
| 32 | |
| 33 | translate(remoteBranch) { |
| 34 | if (this.matchPrefix) { |
| 35 | if (remoteBranch.startsWith(this.remotePath)) { |
| 36 | return this.localPath + remoteBranch.replace(this.remotePath, '') |
| 37 | } |
| 38 | } else { |
| 39 | if (remoteBranch === this.remotePath) return this.localPath |
| 40 | } |
| 41 | return null |
| 42 | } |
| 43 | |
| 44 | reverseTranslate(localBranch) { |
| 45 | if (this.matchPrefix) { |
no outgoing calls
no test coverage detected