Remove reference doesn't work natively with Reference.ref()
Open
- Dominant language
- Java
- Stars
- 307
- Forks
- 144
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 14
Description
When trying to remove reference by using Reference.ref() then it fails:
```
References ref = ....
repo.git().references().remove(ref.ref())
```
Error message:
```
{"message":"Reference does not exist","documentation_url":"https://developer.github.com/v3/git/refs/#delete-a-reference"}
```
Root cause:
The uri is not correctly constructed as it contains two `refs` key words:
```
https://api.github.com/repos/ORG/REPO/git/refs/refs/heads/BRANCH/BRANCH
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.