Skip to content

Setting upstream for branch with 2 forward slashes causes git to error #3436

@eksno

Description

@eksno

Describe the bug
Creating a branch with 2 forward slashes in the name locally works fine, but when I try to push it it fails to set the upstream. Despite of this it does manage to push the branch to remote before erroring.

To Reproduce
Steps to reproduce the behavior:

  1. Create a branch with 2 forwards slashes, for example feature/project/make-a-change
  2. Try to push the branch to remote

Expected behavior
The upstream to be set successfully

Screenshots
image

Version info:
lazygit --version
commit=, build date=, build source=nix, version=0.41.0, os=linux, arch=amd64, git version=2.43.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions