Skip to content

Commit

Permalink
Improve tool resilience to offline conditions (#1064)
Browse files Browse the repository at this point in the history
  • Loading branch information
defagos authored Nov 12, 2024
1 parent 74850c4 commit 925325b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Scripts/checkout-configuration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ if [[ $(git status --porcelain 2> /dev/null) ]]; then
exit 1
fi

if ! git fetch &> /dev/null; then
echo "The repository '$CONFIGURATION_FOLDER' could not be updated."
exit 1
fi
git fetch &> /dev/null

if git checkout -q "$CONFIGURATION_COMMIT_SHA1" &> /dev/null; then
echo "The '$CONFIGURATION_FOLDER' repository has been switched to commit $CONFIGURATION_COMMIT_SHA1."
Expand Down

0 comments on commit 925325b

Please sign in to comment.