We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ce5fd4 commit 3e3a704Copy full SHA for 3e3a704
.gitlab/ci/release/auto_merge.sh
@@ -68,6 +68,23 @@ fix_conflicts_using_theirs() {
68
fi
69
70
done <<<"$lines"
71
+
72
+ conflict_name="both added:"
73
+ conflict_size_next=${#conflict_name}+6
74
+ lines=$(git status)
75
+ while read -r line; do
76
+ status=${line:0:${#conflict_name}}
77
78
+ if [[ "$status" == "$conflict_name" ]]; then
79
+ path_name=${line:$conflict_size_next:${#line}}
80
+ echo "Resolving using theirs $path_name"
81
+ git diff ORIG_HEAD MERGE_HEAD "$path_name"
82
+ git checkout --theirs "$path_name"
83
+ git add "$path_name"
84
+ fi
85
86
+ done <<<"$lines"
87
88
}
89
90
remove_lfs_files() {
0 commit comments