зеркало из https://github.com/mislav/hub.git
Only set head when it's empty
This commit is contained in:
Родитель
6c0e397dcc
Коммит
286b5c8214
|
@ -129,10 +129,12 @@ func pullRequest(cmd *Command, args *Args) {
|
|||
|
||||
}
|
||||
|
||||
if trackedBranch == nil {
|
||||
head = currentBranch.ShortName()
|
||||
} else {
|
||||
head = trackedBranch.ShortName()
|
||||
if head == "" {
|
||||
if trackedBranch == nil {
|
||||
head = currentBranch.ShortName()
|
||||
} else {
|
||||
head = trackedBranch.ShortName()
|
||||
}
|
||||
}
|
||||
|
||||
title, body, err := getTitleAndBodyFromFlags(flagPullRequestMessage, flagPullRequestFile)
|
||||
|
|
Загрузка…
Ссылка в новой задаче