1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-27 05:01:50 +03:00

Add HEAD: when referencing upstream branch

Update unit tests
This commit is contained in:
Jordan
2024-06-01 20:17:36 +01:00
committed by Stefan Haller
parent 205357a44f
commit 39ea5d9ab1
2 changed files with 4 additions and 4 deletions

View File

@ -35,7 +35,7 @@ func (self *SyncCommands) PushCmdObj(task gocui.Task, opts PushOpts) (oscommands
ArgIf(opts.ForceWithLease, "--force-with-lease").
ArgIf(opts.SetUpstream, "--set-upstream").
ArgIf(opts.UpstreamRemote != "", opts.UpstreamRemote).
ArgIf(opts.UpstreamBranch != "", opts.UpstreamBranch).
ArgIf(opts.UpstreamBranch != "", "HEAD:"+opts.UpstreamBranch).
ToArgv()
cmdObj := self.cmd.New(cmdArgs).PromptOnCredentialRequest(task)