diff --git a/src/main/kotlin/nl/avisi/structurizr/site/generatr/ClonedRepository.kt b/src/main/kotlin/nl/avisi/structurizr/site/generatr/ClonedRepository.kt index 325c6518..f420bb88 100644 --- a/src/main/kotlin/nl/avisi/structurizr/site/generatr/ClonedRepository.kt +++ b/src/main/kotlin/nl/avisi/structurizr/site/generatr/ClonedRepository.kt @@ -52,7 +52,7 @@ class ClonedRepository( fun getBranchNames(excludeBranches: List) = Git(repo).branchList().setListMode(ListBranchCommand.ListMode.REMOTE).call() - .map { it.name.toString().substringAfter("/") } + .map { it.name.toString().substringAfter("/remotes/origin/") } .onEach { println("Found the following branch: $it") } .filter { it !in excludeBranches }