We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 411e060 commit f95ec6fCopy full SHA for f95ec6f
src/main/java/org/gitlab4j/api/RepositoryApi.java
@@ -86,7 +86,7 @@ public Pager<Branch> getBranches(Integer projectId, int itemsPerPage) throws Git
86
* @throws GitLabApiException if any exception occurs
87
*/
88
public Branch getBranch(Integer projectId, String branchName) throws GitLabApiException {
89
- Response response = get(Response.Status.OK, null, "projects", projectId, "repository", "branches", branchName);
+ Response response = get(Response.Status.OK, null, "projects", projectId, "repository", "branches", urlEncode(branchName));
90
return (response.readEntity(Branch.class));
91
}
92
0 commit comments