-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers
Description
Describe the bug
Git fast forward branch to remote fails when there's the same tag name because we didn't specify the fetch command to be a branch.
This is pretty similar to #2546
It failed with
error: cannot update ref 'refs/head/<branch name>': trying to write non-commit object <tag hash with same branch name> to branch 'refs/heads/<branch name>'
To Reproduce
Steps to reproduce the behavior:
- Create a tag that has the same name as the branch, and push it.
- Try to fast forward the branch with same name to upstream
Expected behavior
The branch with the same name as the tag should be fast-forwarded successfully
Screenshots
If applicable, add screenshots to help explain your problem.
Version info:
lazygit --version: commit=v0.36.0, build date=2022-11-15T07:26:07Z, build source=binaryRelease, version=0.36.0, os=linux, arch=amd64, git version=2.38.1
git --version: git version 2.38.1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomers