Skip to content

Commit

Permalink
Fix stripping branch name
Browse files Browse the repository at this point in the history
Fixes #289
  • Loading branch information
dirkgroot committed Aug 30, 2023
1 parent dd52a4c commit b867cc9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ClonedRepository(

fun getBranchNames(excludeBranches: List<String>) =
Git(repo).branchList().setListMode(ListBranchCommand.ListMode.REMOTE).call()
.map { it.name.toString().substringAfterLast("/") }
.map { it.name.toString().substringAfter("/") }
.onEach { println("Found the following branch: $it") }
.filter { it !in excludeBranches }

Expand Down

0 comments on commit b867cc9

Please sign in to comment.