aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-08-29 00:52:22 +0000
committerQMK Bot <hello@qmk.fm>2021-08-29 00:52:22 +0000
commit1ac3b3e9b6e794669db91d6d14c90b420b56bc26 (patch)
tree3426bc996060c673910ee56e7ea30adef8ce9ce4
parent7b8cdfc19def74a982a842a5131c011ee23b024a (diff)
parentdd8922d48269a0664e840d6b6a537b8b91c1826b (diff)
downloadqmk_firmware-1ac3b3e9b6e794669db91d6d14c90b420b56bc26.tar.gz
qmk_firmware-1ac3b3e9b6e794669db91d6d14c90b420b56bc26.zip
Merge remote-tracking branch 'origin/master' into develop
-rwxr-xr-xutil/update_chibios_mirror.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/util/update_chibios_mirror.sh b/util/update_chibios_mirror.sh
index d4593a843..83aee2281 100755
--- a/util/update_chibios_mirror.sh
+++ b/util/update_chibios_mirror.sh
@@ -10,7 +10,7 @@ chibios_branches="trunk stable_20.3.x stable_21.6.x"
10chibios_tags="ver20.3.1 ver20.3.2 ver20.3.3 ver21.6.0" 10chibios_tags="ver20.3.1 ver20.3.2 ver20.3.3 ver21.6.0"
11 11
12# The ChibiOS-Contrib branches to mirror 12# The ChibiOS-Contrib branches to mirror
13contrib_branches="master chibios-20.3.x" 13contrib_branches="chibios-20.3.x"
14 14
15################################ 15################################
16# Actions 16# Actions
@@ -38,6 +38,9 @@ fi
38if [[ -z "$(cat "$chibios_git_config" | grep '\[remote "qmk"\]')" ]] ; then 38if [[ -z "$(cat "$chibios_git_config" | grep '\[remote "qmk"\]')" ]] ; then
39 git remote add qmk git@github.com:qmk/ChibiOS.git 39 git remote add qmk git@github.com:qmk/ChibiOS.git
40 git remote set-url qmk git@github.com:qmk/ChibiOS.git --push 40 git remote set-url qmk git@github.com:qmk/ChibiOS.git --push
41else
42 git remote set-url qmk git@github.com:qmk/ChibiOS.git
43 git remote set-url qmk git@github.com:qmk/ChibiOS.git --push
41fi 44fi
42 45
43echo "Updating remotes..." 46echo "Updating remotes..."
@@ -65,11 +68,17 @@ cd "$contrib_dir"
65if [[ -z "$(cat "$contrib_git_config" | grep '\[remote "qmk"\]')" ]] ; then 68if [[ -z "$(cat "$contrib_git_config" | grep '\[remote "qmk"\]')" ]] ; then
66 git remote add qmk git@github.com:qmk/ChibiOS-Contrib.git 69 git remote add qmk git@github.com:qmk/ChibiOS-Contrib.git
67 git remote set-url qmk git@github.com:qmk/ChibiOS-Contrib.git --push 70 git remote set-url qmk git@github.com:qmk/ChibiOS-Contrib.git --push
71else
72 git remote set-url qmk git@github.com:qmk/ChibiOS-Contrib.git
73 git remote set-url qmk git@github.com:qmk/ChibiOS-Contrib.git --push
68fi 74fi
69 75
70if [[ -z "$(cat "$contrib_git_config" | grep '\[remote "upstream"\]')" ]] ; then 76if [[ -z "$(cat "$contrib_git_config" | grep '\[remote "upstream"\]')" ]] ; then
71 git remote add upstream git@github.com:ChibiOS/ChibiOS-Contrib.git 77 git remote add upstream git@github.com:ChibiOS/ChibiOS-Contrib.git
72 git remote set-url upstream git@github.com:ChibiOS/ChibiOS-Contrib.git --push 78 git remote set-url upstream git@github.com:ChibiOS/ChibiOS-Contrib.git --push
79else
80 git remote set-url upstream git@github.com:ChibiOS/ChibiOS-Contrib.git
81 git remote set-url upstream git@github.com:ChibiOS/ChibiOS-Contrib.git --push
73fi 82fi
74 83
75echo "Updating remotes..." 84echo "Updating remotes..."