Only cherry-pick non-merges
This commit is contained in:
@@ -333,7 +333,7 @@ func importRepos(packages []string) {
|
|||||||
}
|
}
|
||||||
if commit_tree[1] == tree {
|
if commit_tree[1] == tree {
|
||||||
found = true
|
found = true
|
||||||
cherry_picks := common.SplitStringNoEmpty(git.GitExecWithOutputOrPanic(pkgName, "rev-list", "--reverse", "--ancestry-path", commit_tree[0]+".."+import_branch), "\n")
|
cherry_picks := common.SplitStringNoEmpty(git.GitExecWithOutputOrPanic(pkgName, "rev-list", "--no-merges", "--reverse", "--ancestry-path", commit_tree[0]+".."+import_branch), "\n")
|
||||||
|
|
||||||
log.Println("cherry picks", cherry_picks)
|
log.Println("cherry picks", cherry_picks)
|
||||||
git.GitExecOrPanic(pkgName, "checkout", "-B", "main", "pool/"+pool_branch)
|
git.GitExecOrPanic(pkgName, "checkout", "-B", "main", "pool/"+pool_branch)
|
||||||
|
|||||||
Reference in New Issue
Block a user