Commit bb1ff74b authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

do a force checkout to reset workspace

parent faa79c23
Pipeline #7863 passed with stages
in 5 minutes and 10 seconds
...@@ -11,13 +11,13 @@ case $BRANCH in ...@@ -11,13 +11,13 @@ case $BRANCH in
*) echo "unknown branch: \"$BRANCH\"" ; exit 1 ;; *) echo "unknown branch: \"$BRANCH\"" ; exit 1 ;;
esac esac
if [ -d "$HOME/aports/.git" ]; then if [ ! -d "$HOME/aports/.git" ]; then
git -C "$HOME"/aports fetch --all --quiet git clone https://git.alpinelinux.org/aports "$HOME"/aports
else
git clone --quiet https://git.alpinelinux.org/aports "$HOME"/aports
fi fi
git -C "$HOME"/aports checkout --quiet "$BRANCH" git -C "$HOME"/aports fetch --all
git -C "$HOME"/aports -c advice.detachedHead=false \
checkout --force origin/"$BRANCH"
for REPO in $REPOS; do for REPO in $REPOS; do
if [ ! -d "$HOME/aports/$REPO" ]; then if [ ! -d "$HOME/aports/$REPO" ]; then
......
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