Skip to content

Commit 551dde0

Browse files
Eunjae Leeshipjs
andauthored
fix(setup): get correct remote branches (#883)
Co-authored-by: shipjs <shipjs@test.com>
1 parent bdb7380 commit 551dde0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/shipjs-lib/src/lib/git/getRemoteBranches.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default function getRemoteBranches(dir = '.') {
1717
.trim()
1818
.split('\n')
1919
.map((line) => line.trim())
20+
.filter(Boolean)
2021
.filter((line) => !line.includes(' -> '))
2122
.map((line) => line.slice(remote.length + 1));
2223
}

0 commit comments

Comments
 (0)