jesseduffield / lazygit

simple terminal UI for git commands
MIT License
51.37k stars 1.8k forks source link

(#3618) Fix pushing a branch to remote with a different name causing error #3630

Closed JordanllHarper closed 4 months ago

JordanllHarper commented 4 months ago

This fixes an error where, given the user wants push a branch to a remote branch with a different name, the following error would be presented:

Error
error: src refspec <desired remote branch name> does not match any
error: failed to push some refs to <remote .git URI>
stefanhaller commented 4 months ago

Looks good, but please squash the second commit into the first; we want to avoid having commits that have failing tests.

Also, the PR title is very misleading, we are not renaming anything here; we are pushing a branch to a remote branch with a different name. Would be good to rename the subject (and the PR description) to make this clearer.

JordanllHarper commented 4 months ago

Apologies you're right, fixed now

stefanhaller commented 4 months ago

Great, thanks for the contribution.