Skip to content
Permalink
Browse files
forge: use correct endpoint for GitLab branches
Reviewed-by: rwestberg
  • Loading branch information
edvbld committed Apr 9, 2020
1 parent 99be6ed commit 6b271460fbb4194fe02b412ea05d4a774cd6f732
Showing with 1 addition and 1 deletion.
  1. +1 −1 forge/src/main/java/org/openjdk/skara/forge/gitlab/GitLabRepository.java
@@ -267,7 +267,7 @@ public Hash branchHash(String ref) {

@Override
public List<HostedBranch> branches() {
var branches = request.get("branches").execute();
var branches = request.get("repository/branches").execute();
return branches.stream()
.map(b -> new HostedBranch(b.get("name").asString(),
new Hash(b.get("commit").get("id").asString())))

0 comments on commit 6b27146

Please sign in to comment.