From 7af0ebf55d3391ec206e2bff0562805653521439 Mon Sep 17 00:00:00 2001 From: BlubbFish Date: Sat, 19 Sep 2020 09:17:42 +0200 Subject: [PATCH 1/2] update.sh should chechout default branch --- update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 5d6fdd6..7c8b720 100644 --- a/update.sh +++ b/update.sh @@ -26,7 +26,8 @@ function look_for_update() { echo "Checkout master for $1" git submodule update --init -- "$1" cd "$1" - git checkout master + defaultbranch=$(git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@') + git checkout "$defaultbranch" fi fi } From 4e745cb263d8946262754bd05bc5169356c4cf4e Mon Sep 17 00:00:00 2001 From: BlubbFish Date: Sat, 19 Sep 2020 09:32:10 +0200 Subject: [PATCH 2/2] Updatescript changed --- Arduino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Arduino b/Arduino index ac1d7a5..1da51e3 160000 --- a/Arduino +++ b/Arduino @@ -1 +1 @@ -Subproject commit ac1d7a5737fa6358665cc32eaf87d390cf78810e +Subproject commit 1da51e3cef308f135a295eeba44c3cea58f062b8