zuul/tests/fixtures/git_fetch_error.sh
James E. Blair ea398b5205 Merger: retry network operations
Try cloning and fetching 3 times, 30 seconds apart, to add some
robustness.

Change-Id: I4f113a0d1313ea4485086f62514825ec980584a6
2018-01-31 13:20:36 -08:00

18 lines
210 B
Bash
Executable File

#!/bin/sh
echo $*
case "$1" in
fetch)
if [ -f ./stamp1 ]; then
touch ./stamp2
exit 0
fi
touch ./stamp1
exit 1
;;
version)
echo "git version 1.0.0"
exit 0
;;
esac