SVN->GIT link broken?

Derek Atkins warlord at MIT.EDU
Tue Mar 26 12:17:54 EDT 2013


John Ralls <jralls at ceridwen.us> writes:

>> We'll (I'll ;-) ) have to add some error handling to the push_repo
>> function in git-svn-mirror (you're still using that, right?) to make
>> it die if the push fails. Then your cron script can just test it and
>> re-touch if it fails.
>
> Alternatively, push_repo could handle the error on its own with an
> exponentially-timed retry period. The only concern I have about that
> is that there's no way to tell the difference between a temporary
> outage and Github doing something that requires human intervention --
> but I suppose that's also true of re-touching your sentinel file.

Well, a backoff would work, but that's not all the potential errors that
happen.  I can forward you some of the emails I get with the various
emails from the svn->git migration.  Sometimes I get a 'git error' about
a file that doesn't exist (my guess is that this is from the svn->git
portion).  Only once or twice did I see an ssh error pushing to github.

> BTW, why a cron job instead of an SVN commit hook?

In order to change the user so that I didn't have to make sure everyone
with an SVN account could directly write into gitolite..  I wanted to
make sure that the push into gitolite only happened from a single user,
and the best way I could think of to do that was via a cron job.

> Regards,
> John Ralls

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list