提交 286b5c82 编写于 作者: J Jingwen Owen Ou

Only set head when it's empty

上级 6c0e397d
...@@ -129,10 +129,12 @@ func pullRequest(cmd *Command, args *Args) { ...@@ -129,10 +129,12 @@ func pullRequest(cmd *Command, args *Args) {
} }
if trackedBranch == nil { if head == "" {
head = currentBranch.ShortName() if trackedBranch == nil {
} else { head = currentBranch.ShortName()
head = trackedBranch.ShortName() } else {
head = trackedBranch.ShortName()
}
} }
title, body, err := getTitleAndBodyFromFlags(flagPullRequestMessage, flagPullRequestFile) title, body, err := getTitleAndBodyFromFlags(flagPullRequestMessage, flagPullRequestFile)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册