From c39b906006e1c1b874a1d5702eeab6073f9f9138 Mon Sep 17 00:00:00 2001 From: Declan Lynch Date: Wed, 25 Oct 2023 09:24:04 -0400 Subject: [PATCH] Fix regression bug to get branch names. --- .../nl/avisi/structurizr/site/generatr/ClonedRepository.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }