diff options
author | QMK Bot <[email protected]> | 2024-08-12 10:36:29 +0000 |
---|---|---|
committer | QMK Bot <[email protected]> | 2024-08-12 10:36:29 +0000 |
commit | ca6ba30a725c025ce2494276c703ff1d0d51b29b (patch) | |
tree | bd5e9efc6d2d301bec562ee112e2cfa602cb3ee4 | |
parent | 019b6f67b2029030a664a2d7ef545b08ace8bedb (diff) | |
parent | 158aaef78c26ea1ade9a5fbc0ee7fbe5b84a6fe9 (diff) | |
download | qmk_firmware-ca6ba30a725c025ce2494276c703ff1d0d51b29b.tar.gz qmk_firmware-ca6ba30a725c025ce2494276c703ff1d0d51b29b.zip |
Merge remote-tracking branch 'origin/master' into develop
-rwxr-xr-x | util/update_chibios_mirror.sh | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/util/update_chibios_mirror.sh b/util/update_chibios_mirror.sh index 05e22fa2ea..ea3f2ba354 100755 --- a/util/update_chibios_mirror.sh +++ b/util/update_chibios_mirror.sh @@ -4,13 +4,10 @@ # Configuration # The ChibiOS branches to mirror -chibios_branches="trunk stable_20.3.x stable_21.11.x" - -# The ChibiOS tags to mirror -chibios_tags="ver20.3.1 ver20.3.2 ver20.3.3 ver20.3.4 ver21.11.1 ver21.11.2 ver21.11.3" +chibios_branches="trunk stable_21.11.x" # The ChibiOS-Contrib branches to mirror -contrib_branches="chibios-20.3.x chibios-21.11.x" +contrib_branches="chibios-21.11.x" ################################ # Actions @@ -46,6 +43,12 @@ fi echo "Updating remotes..." git fetch --all --tags --prune +echo "Ensure refs actually match up..." +for branch in $chibios_branches ; do + echo "Matching $branch..." + git update-ref refs/remotes/svn/$branch refs/remotes/qmk/svn-mirror/$branch +done + echo "Fetching latest from subversion..." git svn fetch @@ -56,13 +59,6 @@ for branch in $chibios_branches ; do && git push qmk svn-mirror/$branch done -echo "Updating ChibiOS tags..." -for tagname in $chibios_tags ; do - echo "Creating tag 'svn-mirror/$tagname' from 'svn/tags/$tagname'..." - GIT_COMMITTER_DATE="$(git log -n1 --pretty=format:'%ad' svn/tags/$tagname)" git tag -f -a -m "Tagging $tagname" svn-mirror/$tagname svn/tags/$tagname - git push qmk svn-mirror/$tagname -done - cd "$contrib_dir" if [[ -z "$(cat "$contrib_git_config" | grep '\[remote "qmk"\]')" ]] ; then |