git.sh: re-try git pull three times
mitigate jittery internet connections Signed-off-by: Leah Rowe <leah@libreboot.org>audit2
parent
055c9be15b
commit
03c9670fef
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue