Skip to content
Snippets Groups Projects
Commit 03c9670f authored by Libreboot project's avatar Libreboot project Committed by Leah Rowe
Browse files

git.sh: re-try git pull three times


mitigate jittery internet connections

Signed-off-by: default avatarLeah Rowe <leah@libreboot.org>
parent 055c9be1
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,8 @@ tmpclone()
repodir="repo/${1##*/}"
x_ mkdir -p "repo"
if [ -d "$repodir" ]; then
git -C "$repodir" pull || :
git -C "$repodir" pull || sleep 3 || git -C "$repodir" pull \
|| sleep 3 || git -C "$repodir" pull :
else
git clone $1 "$repodir" || git clone $2 "$repodir" || \
$err "!clone $1 $2 $repodir $4 $5"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment