mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
simple backport script
This commit is contained in:
parent
cd83ebc599
commit
91c8c2ac1a
@ -13,14 +13,13 @@ branch_git_cmd=(git log "$merge_base..origin/$branch" --first-parent)
|
||||
"${branch_git_cmd[@]}" > "$branch-log.txt"
|
||||
|
||||
# Check for diamond merges.
|
||||
"${master_git_cmd[@]}" --oneline --grep "Merge branch '" | grep ''
|
||||
diamonds_in_master=$?
|
||||
diamonds_in_master=$("${master_git_cmd[@]}" --oneline --grep "Merge branch '")
|
||||
diamonds_in_branch=$("${branch_git_cmd[@]}" --oneline --grep "Merge branch '")
|
||||
|
||||
"${branch_git_cmd[@]}" --oneline --grep "Merge branch '" | grep ''
|
||||
diamonds_in_branch=$?
|
||||
|
||||
if [ "$diamonds_in_master" -eq 0 ] || [ "$diamonds_in_branch" -eq 0 ]
|
||||
if [ "$diamonds_in_master" != "" ] || [ "$diamonds_in_branch" != "" ]
|
||||
then
|
||||
echo "$diamonds_in_master"
|
||||
echo "$diamonds_in_branch"
|
||||
# DO NOT ADD automated handling of diamond merges to this script.
|
||||
# It is an unsustainable way to work with git, and it MUST be visible.
|
||||
echo Warning: suspected diamond merges above.
|
||||
|
Loading…
Reference in New Issue
Block a user