Skip to content

delete branch when branch‘s name have "#" and "$" #779

@sccdcwc

Description

@sccdcwc

Description of the problem, including code/CLI snippet

When I delete the branch with "#" and "$" in the name,the result returned by the interface shows 404.
project = gl.projects.get(project_id) branch=project.branches.list(search=branch_name)[0] branch.delete()

Expected Behavior

The interface returns success to delete the branches.

Actual Behavior

Specifications

python-gitlab version:

API version you are using (v3/v4):
v4
Gitlab server version (or gitlab.com):
GitLab Community Edition 11.8.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions