Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChibiOS Update Script Updates #14205

Merged
merged 1 commit into from
Aug 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion util/update_chibios_mirror.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ chibios_branches="trunk stable_20.3.x stable_21.6.x"
chibios_tags="ver20.3.1 ver20.3.2 ver20.3.3 ver21.6.0"

# The ChibiOS-Contrib branches to mirror
contrib_branches="master chibios-20.3.x"
contrib_branches="chibios-20.3.x"

################################
# Actions
Expand Down Expand Up @@ -38,6 +38,9 @@ fi
if [[ -z "$(cat "$chibios_git_config" | grep '\[remote "qmk"\]')" ]] ; then
git remote add qmk git@github.com:qmk/ChibiOS.git
git remote set-url qmk git@github.com:qmk/ChibiOS.git --push
else
git remote set-url qmk git@github.com:qmk/ChibiOS.git
git remote set-url qmk git@github.com:qmk/ChibiOS.git --push
fi

echo "Updating remotes..."
Expand Down Expand Up @@ -65,11 +68,17 @@ cd "$contrib_dir"
if [[ -z "$(cat "$contrib_git_config" | grep '\[remote "qmk"\]')" ]] ; then
git remote add qmk git@github.com:qmk/ChibiOS-Contrib.git
git remote set-url qmk git@github.com:qmk/ChibiOS-Contrib.git --push
else
git remote set-url qmk git@github.com:qmk/ChibiOS-Contrib.git
git remote set-url qmk git@github.com:qmk/ChibiOS-Contrib.git --push
fi

if [[ -z "$(cat "$contrib_git_config" | grep '\[remote "upstream"\]')" ]] ; then
git remote add upstream git@github.com:ChibiOS/ChibiOS-Contrib.git
git remote set-url upstream git@github.com:ChibiOS/ChibiOS-Contrib.git --push
else
git remote set-url upstream git@github.com:ChibiOS/ChibiOS-Contrib.git
git remote set-url upstream git@github.com:ChibiOS/ChibiOS-Contrib.git --push
fi

echo "Updating remotes..."
Expand Down