Skip to content

Commit

Permalink
fix(setup): get correct remote branches (#883)
Browse files Browse the repository at this point in the history
Co-authored-by: shipjs <[email protected]>
  • Loading branch information
Eunjae Lee and shipjs authored Jun 14, 2020
1 parent bdb7380 commit 551dde0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/shipjs-lib/src/lib/git/getRemoteBranches.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default function getRemoteBranches(dir = '.') {
.trim()
.split('\n')
.map((line) => line.trim())
.filter(Boolean)
.filter((line) => !line.includes(' -> '))
.map((line) => line.slice(remote.length + 1));
}

0 comments on commit 551dde0

Please sign in to comment.