Skip to content

Commit

Permalink
Merge pull request #3 from argyle-engineering/revert-2-fix-build-conf…
Browse files Browse the repository at this point in the history
…licts

Revert "Auto fix conflicts on .build files"
  • Loading branch information
chicocvenancio authored May 21, 2022
2 parents 6121c67 + 513425d commit 977b483
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,6 @@ git fetch origin $HEAD_BRANCH
# do the merge
git checkout -b $HEAD_BRANCH origin/$HEAD_BRANCH
git fetch origin $BRANCH_TO_MERGE
if git merge origin/$BRANCH_TO_MERGE --no-edit; then
echo "Merged $BRANCH_TO_MERGE into $HEAD_BRANCH"
else
echo "Failed to merge $BRANCH_TO_MERGE into $HEAD_BRANCH"
if [[ -z $(git diff --name-status --diff-filter=U |grep -v .build) ]]; then
echo "Conflicts only in .build files, ignoring"
git merge origin/$BRANCH_TO_MERGE --no-edit -X theirs
echo "Merged $BRANCH_TO_MERGE into $HEAD_BRANCH"
else
echo "Conflicts cannot be automatically resolved"
exit 1
fi
fi
git merge origin/$BRANCH_TO_MERGE --no-edit
git push origin $HEAD_BRANCH
git push origin --delete $BRANCH_TO_MERGE

0 comments on commit 977b483

Please sign in to comment.