提交 c6979bd2 编写于 作者: D Daniel Hahler

merge: do not insert "--no-ff" for "--squash"

上级 14096065
......@@ -76,7 +76,7 @@ func transformMergeArgs(args *Args) error {
mergeMsg := fmt.Sprintf("Merge pull request #%v from %s\n\n%s", id, mergeHead, pullRequest.Title)
args.AppendParams(mergeHead, "-m", mergeMsg)
if args.IndexOfParam("--ff-only") == -1 {
if args.IndexOfParam("--ff-only") == -1 && args.IndexOfParam("--squash") == -1 {
i := args.IndexOfParam("-m")
args.InsertParam(i, "--no-ff")
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册