On Thu, Aug 22, 2013 at 10:30 AM, Chad Perrin <c...@apotheon.net> wrote:

> On Thu, Aug 22, 2013 at 10:45:08AM +0200, Stephan Beal wrote:
> > On Thu, Aug 22, 2013 at 4:34 AM, Chad Perrin <c...@apotheon.net> wrote:
> > >
> > > mirror should be set up on GitHub to boost its search engine ranking a
> > > little bit (with a prominent mention of its canonical version control
> > > repository being elsewhere using Fossil itself, of course).  While
> >
> > OMG! lol. It never occurred to me to do such a thing, but you're right,
> it
> > would probably be a good idea.
>
> I'd like to be kept abreast of how you accomplish that in an automated
> manner.  I too would like to do that with some projects of mine, but
> it's low enough on the priority list for my own stuff right now that I
> won't get to it for a while.  If you end up doing the hard work of
> figuring out the best way to do it sooner than I'd get around to even
> starting, it could save me a lot of effort.
>

Did you say "best way?"

I can't really help you there, but I do run the following script from time
to time to keep 20+ fossil repos synced to private bitbucket repos. Github
vs bitbucket should just be a matter of what the prefix portion of the
remote path is -- it's all just git of course.

https://gist.github.com/tifletcher/5399728

Caveats:

- Everything is hard coded and is really just a rough draft / not intended
for public consumption.

- I'm calling 'tree' at the end because it helps me visualize / confirm
what I just did. Please delete that line if 'which tree' returns nothing on
your system.

- You have to clean up the 'export' directory by hand at the moment (I
don't personally like seeing rm -r in a script ... especially one that I
run infrequently)

On the other hand it has been working quite well for me with multiple
pushes looking as expected on the remote for a while, so maybe it can be a
starting point for you? And if you fix it please do fork and republish and
let me know :)

Best Regards,

Themba
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to