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