Skip to content

Commit 32679d4

Browse files
author
Jared Murrell
authored
added notice of retry count
1 parent e678af1 commit 32679d4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

_functions.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,20 @@ function _git_svn_clone()
366366
WRITE
367367
for REV in ${REV_LIST}
368368
do
369+
RETRY_COUNT=0
369370
showBar ${CURRENT_REV} ${REV_COUNT}
370371
echo -e "" && echo -e " REV: ${REV}"
371372
git svn fetch -qr${REV} ${AUTHORS} &>> ${LOG_FILE} > /dev/null
372373
RESULT=$?
373374
while [[ ${RESULT} -ne 0 ]]
374375
do
376+
if [[ ${RETRY_COUNT} -gt 5 ]]
377+
then
378+
echo "" && echo ""
379+
echo "It would appear that retrying is a pointless venture."
380+
echo "Please consider a clean cutover, as it is unlikely this"
381+
echo "will resolve."
382+
fi
375383
echo "" && echo ""
376384
echo "Revision ${REV} failed to clone, possibly due to corruption."
377385
echo ""
@@ -408,6 +416,7 @@ function _git_svn_clone()
408416
git svn fetch -qr${REV} ${AUTHORS} &>> ${LOG_FILE} > /dev/null
409417
RESULT=$?
410418
fi
419+
((RETRY++))
411420
done
412421
((CURRENT_REV++))
413422
done

0 commit comments

Comments
 (0)