update.sh: remove stale git-svn *.lock files before git svn fetch
commit4e380500f2a91fc1282ec092f1cee4954ac7342d
authorKyle J. McKay <mackyle@gmail.com>
Sun, 23 Jun 2013 21:09:31 +0000 (23 14:09 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 23 Jun 2013 21:09:31 +0000 (23 14:09 -0700)
treecf1c9c90df7bf30d5e83a2e44df5f58b7ac0a975
parenta881058e90fcbe6f70d1ab1f4578d9d16b6cae69
update.sh: remove stale git-svn *.lock files before git svn fetch

Some git svn fetch updates take an abnormally long time even when
retrieving just a single new revision.

If the git svn fetch gets killed because of a jobd.pl timeout,
then it may leave a stale *.lock file behind which will prevent
the next git svn fetch from doing anything.

This change removes stale lock files at least 60 minutes old.
This way there will be a pause before resuming a dreadfully
long git svn fetch that was killed due to a timeout as the
stale *.lock files must age to at least 1 hour first.
jobd/update.sh