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
*) echo "unknown branch: \"$BRANCH\"" ; exit 1 ;;
if [ -d "$HOME/aports/.git" ]; then
git -C "$HOME"/aports fetch --all --quiet
git clone --quiet "$HOME"/aports
if [ ! -d "$HOME/aports/.git" ]; then
git clone "$HOME"/aports
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
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