-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tim Liu <[email protected]>
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,9 +42,11 @@ jobs: | |
git config user.email "[email protected] " | ||
git fetch origin ${HEAD} ${BASE} | ||
git checkout -b ${INTERMEDIATE_HEAD} origin/${HEAD} | ||
# Use commits from HEAD, but keek submodule files(FILE_USE_BASE) from BASE | ||
# Sync the $BASE branch with the commits from the $HEAD branch, | ||
# excluding the paths defined as $FILE_USE_BASE (located under ./thirdparty). | ||
git checkout origin/${BASE} -- ${FILE_USE_BASE} | ||
# If any submodule file is updaged from HEAD, always change to BASE ones | ||
# If any submodule file is updated in the HEAD branch, | ||
# always change it to the corresponding one from the BASE branch. | ||
[ ! -z "$(git status --porcelain=v1 --untracked=no)" ] && \ | ||
git commit -s -am "Auto-merge use ${BASE} versions" | ||
git push origin ${INTERMEDIATE_HEAD} -f | ||
|