Skip to content

Commit 09bb8f6

Browse files
committed
Set up custom merge strategy for pyproject.toml
Added .gitattributes rule and Git configuration to always prefer our fork's version of pyproject.toml during merges. Ensures smoother upstream syncs by preventing conflicts in this file.
1 parent 5ac0558 commit 09bb8f6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
*.pkl binary
2+
# Always keep our fork's version of pyproject.toml
3+
pyproject.toml merge=ours

.github/workflows/sync-upstream.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ jobs:
4646
- name: Checkout unstable branch
4747
run: git checkout ${{ env.UNSTABLE_BRANCH }}
4848

49+
- name: Configure Git merge driver
50+
run: |
51+
git config merge.ours.driver true
52+
4953
- name: Merge upstream/${{ env.UPSTREAM_BRANCH }} into unstable
5054
run: |
5155
set -e

0 commit comments

Comments
 (0)