Skip to content

Inconsistency between createRef and getRef #518

@dmarkhas

Description

@dmarkhas

Currently createRef expects a fully qualified ref name ('refs/heads/master') while getRef prepends the 'refs/' and will fail if called with the same argument as createRef.
This is confusing, I suggest to align the APIs or at least prevent getRef from auto-adding 'refs/' to the path if the provided name already starts with 'refs/'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions