support main or master as default branch in hammer plugins

This commit is contained in:
Harrison Liew
2023-02-13 19:05:17 -08:00
parent 4977d8fb49
commit e7152d511d
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ if [[ ${plen} -gt 0 ]]; then
for p in "${package_list[@]}"; do
cd ${p}
echo "Updating current directory: $PWD"
git checkout master
git checkout `basename "$(git rev-parse --abbrev-ref origin/HEAD)"`
git pull
cd - > /dev/null
git add ${p}