timols / java-gitlab-api

A wrapper for the Gitlab API written in Java
Apache License 2.0
387 stars 317 forks source link

getRepositoryTree not working with just ref parameter #382

Closed abidahmadq closed 3 years ago

abidahmadq commented 4 years ago

GET /api/v4/projects/$proj_no/repository/tree?per_page=100&path=&ref=$branch_name&recursive=True Doesn't work for branch_name other than master. But using these 2 queries work -> 1) GET /api/v4/projects/$proj_no/repository/tree?per_page=100&path=&ref\=$branch_name&recursive=True (ie adding a \ before =)

2) GET /api/v4/projects/$proj_no/repository/tree?per_page=100&path=&ref_name=$branch_name&recursive=True (ie using ref_name inplace of ref)

I have tested it. Please check if someone can reproduce it. I can start working on a fix if the problem exists.

abidahmadq commented 4 years ago

@timols