Skip to content

Commit

Permalink
Add origin for pulling
Browse files Browse the repository at this point in the history
  • Loading branch information
jaisnan committed Jul 26, 2024
1 parent aec9518 commit 0d0dd56
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/update-subtree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ jobs:
working-directory: head
run: |
git remote add upstream https://github.com/rust-lang/rust.git
git remote set-url origin https://github.com/model-checking/verify-rust-std.git
git fetch upstream ${{ needs.prepare.outputs.commit_hash }}
git remote -v
- name: Prepare sync branch
working-directory: head
Expand All @@ -98,14 +100,13 @@ jobs:
git checkout ${{ needs.prepare.outputs.commit_hash }}
git pull upstream ${{ needs.prepare.outputs.commit_hash }}
# - name: Update subtree
# run: |
# cd repo
# git subtree split --prefix=library --onto subtree/library -b subtree/library
# git fetch origin
# git checkout -b ${{ env.SYNC_BRANCH }} origin/main
- name: Update subtree
run: |
git subtree split --prefix=library --onto subtree/library -b subtree/library
git fetch origin
git checkout -b ${{ env.SYNC_BRANCH }} origin/main
# - name: Merge subtree
# run: |
# cd repo
# git subtree merge --prefix=library subtree/library --squash
- name: Merge subtree
run: |
cd repo
git subtree merge --prefix=library subtree/library --squash

0 comments on commit 0d0dd56

Please sign in to comment.