diff options
| -rwxr-xr-x | util/update_chibios_mirror.sh | 11 |
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" | |||
| 10 | chibios_tags="ver20.3.1 ver20.3.2 ver20.3.3 ver21.6.0" | 10 | chibios_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 |
| 13 | contrib_branches="master chibios-20.3.x" | 13 | contrib_branches="chibios-20.3.x" |
| 14 | 14 | ||
| 15 | ################################ | 15 | ################################ |
| 16 | # Actions | 16 | # Actions |
| @@ -38,6 +38,9 @@ fi | |||
| 38 | if [[ -z "$(cat "$chibios_git_config" | grep '\[remote "qmk"\]')" ]] ; then | 38 | if [[ -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 |
| 41 | else | ||
| 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 | ||
| 41 | fi | 44 | fi |
| 42 | 45 | ||
| 43 | echo "Updating remotes..." | 46 | echo "Updating remotes..." |
| @@ -65,11 +68,17 @@ cd "$contrib_dir" | |||
| 65 | if [[ -z "$(cat "$contrib_git_config" | grep '\[remote "qmk"\]')" ]] ; then | 68 | if [[ -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 |
| 71 | else | ||
| 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 | ||
| 68 | fi | 74 | fi |
| 69 | 75 | ||
| 70 | if [[ -z "$(cat "$contrib_git_config" | grep '\[remote "upstream"\]')" ]] ; then | 76 | if [[ -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 |
| 79 | else | ||
| 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 | ||
| 73 | fi | 82 | fi |
| 74 | 83 | ||
| 75 | echo "Updating remotes..." | 84 | echo "Updating remotes..." |
