jesseduffield.lazygit/pkg/commands
Stefan Haller 0864affc8f Fix checking out a different branch while pushing a branch for the first time
When pushing a branch that didn't have an upstream yet, we use the command line

  git push --set-upstream origin HEAD:branch-name

The HEAD: part of this is too unspecific; when checking out a different branch
while the push is still running, then git will set the upstream branch on the
newly checked out branch, not the branch that was being pushed. This might be
considered a bug in git; you might expect that it resolves HEAD at the beginning
of the operation, and uses the result at the end.

But we can easily work around this by explicitly supplying the real branch name
instead of HEAD.
2025-01-26 10:22:19 +01:00
..
git_commands Fix checking out a different branch while pushing a branch for the first time 2025-01-26 10:22:19 +01:00
git_config Use print instead of printf when there are no arguments 2024-08-27 10:33:06 +02:00
hosting_service Allow on prem Azure DevOps Server pull request 2025-01-02 15:10:02 +11:00
models Add user config gui.showNumstatInFilesView 2024-12-08 12:09:47 +01:00
oscommands Use interactive shell for running shell commands only if shell is bash or zsh 2025-01-09 09:29:31 +01:00
patch Adjust line number for working copy when editing a line 2025-01-07 17:46:51 +01:00
testdata Support opening lazygit in a submodule 2019-05-12 17:59:49 +10:00
types/enums Show mode-specific keybinding suggestions 2024-01-28 08:33:13 +11:00
git.go Add ahead/behind information for @{push} 2024-05-19 09:44:38 +02:00
git_cmd_obj_builder.go Use an interactive shell for running custom commands 2024-08-17 10:32:18 +02:00
git_cmd_obj_runner.go Retry on index.lock error 2023-07-10 19:13:18 +10:00