Closed
Description
Describe the bug
I'm working on a repo with multiple remotes (origin and fork) and have a branch locally with different name which pushes to main
branch on the fork
To Reproduce
- set upstream of a branch to a differently named one:
.git/config
[branch "lints"]
remote = workspace-lints
merge = refs/heads/main
- set default for push to upstream (without it the cli asks you to specify to which branch)
in.git/config
[push]
default = upstream
- prepare a commit and push with gitui
- gitui creates a branch with the name of the local branch and pushes to it
Expected behavior
when executing git push --verbose
on such branch
Pushing to gitlab.torproject.org:matt022/workspace-lints
To gitlab.torproject.org:matt022/workspace-lints
= [up to date] lints -> main
updating local tracking ref 'refs/remotes/workspace-lints/main'
Everything up-to-date
Screenshots
N/A
Context (please complete the following information):
Rust: cargo 1.84.0 (66221abde 2024-11-19) (stable)
gitui: 0.27.0
OS: NixOS 25.05 (Warbler) x86_64
Host: Windows Subsystem for Linux - NixOS (2.4.11)
Kernel: Linux 5.15.167.4-microsoft-standard-WSL2
Shell: bash 5.2.37
Additional context
As noted in the logs this is a gitlab instance if that changes things