File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments