personalweb

archived
git clone git://git.wimdupont.com/personalweb.git
Log | Files | Refs | LICENSE

commit c232da44c400cbb6b9364c1cb5f2e25d16a63d50
parent 06bf03d8ed8ea5cc446a3221d1e79f89df0d3d9b
Author: Wim Dupont <wim@wimdupont.com>
Date:   Fri, 22 Dec 2023 08:11:51 +0100

configurable repository branch fix


Former-commit-id: f92b5114236e1397179bb6ccdd4829be255b5b19
Diffstat:
Msrc/main/java/com/wimdupont/personalweb/api/GitApi.java | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/java/com/wimdupont/personalweb/api/GitApi.java b/src/main/java/com/wimdupont/personalweb/api/GitApi.java @@ -31,8 +31,9 @@ public class GitApi { } public Optional<List<RepositoryTreeItem>> getRepositoryTree(AdocContentType adocContentType) { - return webClient.get().uri(String.format("%s/tree?ref=main&path=%s", + return webClient.get().uri(String.format("%s/tree?ref=%s&path=%s", repositoryUrl, + gitBranch, adocContentType.getPathPrefix())) .retrieve() .bodyToFlux(RepositoryTreeItem.class)