Commit 45f3bf60 authored by Peter Nerlich's avatar Peter Nerlich
Browse files

update: try to ensure we really get it correct

parent 2565c94a
Pipeline #44349 passed with stage
in 13 seconds
...@@ -5,9 +5,9 @@ target="${1:-master}" ...@@ -5,9 +5,9 @@ target="${1:-master}"
echo "reset target is $target" echo "reset target is $target"
# update meta repo # update meta repo
git fetch origin "$target" git fetch origin "$target" --force
# use the latest commit on master, discard any local changes # use the latest commit on master, discard any local changes
git reset --hard "$target" git reset --hard origin/"$target" || git reset --hard "$target" || git checkout --force "$target"
# sync repo urls # sync repo urls
git submodule sync --recursive git submodule sync --recursive
# update commits, discard any local changes # update commits, discard any local changes
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment