Skip to content

Make Git push respect branch.source.pushRemote (not just origin) #26649

@bersace

Description

@bersace

Summary

Zed pushes my branch to master

Steps to trigger the problem:

  1. git checkout -b mybranch origin/main (sets upstream to main)
  2. git remote add fork [email protected]:fork/zed
  3. configure branch.source.pushRemote to fork
  4. git push will push to fork, not origin

Actual Behavior:

zed pushes to origin master.

Expected Behavior:

zed pushes to fork/mybranch

Zed Version and System Specs

Zed: v0.177.7 (Zed)
OS: Linux Wayland debian unknown
Memory: 15.4 GiB
Architecture: x86_64
GPU: Intel(R) Iris(R) Xe Graphics (TGL GT2) || Intel open-source Mesa driver || Mesa 24.3.4-3

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

Metadata

Metadata

Assignees

Labels

area:integrations/gitGit integration feedbackstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

Type

Projects

Status

🚢 Shipped by Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions