Skip to content

POST /api/v1/releases should require target parameter #5471

Closed
@noerw

Description

@noerw
  • Gitea version (or commit ref): 1.6.0

  • Can you reproduce the bug at https://try.gitea.io:

    • Yes (provide example URL)
    • No
    • Not relevant

Description

When trying to create a release without target_comitish parameter the following error occurs:

GetCommit: exit status 128 - fatal: ambiguous argument '': unknown revision or path not in the working tree.

It would be good to reject this request, instead of querying git with an empty commitish string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions