Skip to content

Commit

Permalink
retry git clone
Browse files Browse the repository at this point in the history
  • Loading branch information
rkansal47 committed Mar 5, 2024
1 parent 2f53d9e commit 62b39b7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/condor/submit.templ.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@
# make dir for output
mkdir outfiles

# shallow clone of single branch (keep repo size as small as possible)
git clone --single-branch --branch $branch --depth=1 https://github.com/rkansal47/HHbbVV/
# try 3 times in case of network errors
(
r=3
# shallow clone of single branch (keep repo size as small as possible)
while ! git clone --single-branch --branch $branch --depth=1 https://github.com/rkansal47/HHbbVV/
do
((--r)) || exit
sleep 60
done
)
cd HHbbVV || exit

commithash=$$(git rev-parse HEAD)
Expand Down

0 comments on commit 62b39b7

Please sign in to comment.