8000 Refs should not encode / · Issue #1432 · google/go-github · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Refs should not encode / #1432
Closed
Closed
@vetinari

Description

@vetinari

The commit #1099 changed the ref name to be URL Query encoded. This breaks ref names which contain a /:

A call to curl -vH "Authorization: Bearer $TOKEN" https://$GHE_URL/repos/o/r/git/ref/heads/master works, but https://$GHE_URL/repos/o/r/git/ref/heads%2Fmaster (like GetRef(), GetRefs() use it) fail with 404.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0