[Facebooker-talk] error with session_migration

Richard Jordan
Fri, 25 Jul 2008 23:20:24 -0000

I figured out how to mirror a git repo to rubyforge.  Mike, I assume you
used git-svn when you moved it to GitHub like so,
   git svn clone svn+ssh://mmangino at rubyforge.org/var/svn/facebooker -T trunk

Now, to push back to rubyforge, you should be able to just do,
   git svn dcommit

If that works, then to mirror back gitHub commits you can use git''s
post-commit hook.  Edit the file in facebooker/.git/hooks/post-commit to
be,
------------------
   #!/bin/sh
   #
   # An example hook script that is called after a successful
   # commit is made.
   #
   # To enable this hook, make this file executable.

   #: Nothing

   git-svn dcommit
-----------------
Everytime you commit you''ll also see,
   Committing to svn+ssh://rubyforge.org/var/svn/facebooker/trunk ...

I tried this sequence with a repo I had on rubyforge. It worked for me.

Richard

On Fri, 25 Jul 2008, Mike Mangino wrote:

> Does anyone know of an easy way to mirror the git repo to rubyforge?
>
> Mike
>
> On Jul 24, 2008, at 7:59 PM, Allen Walker wrote:
>
>> Solved getting the git instead:
>>
>> script/plugin install git://github.com/mmangino/facebooker.git
>>
>> Allen Walker wrote:
>> > Just got thru installing the plugin.
>> >
>> > Doesn''t seem to work:
>> >
>> > # script/generate session_migration
>> > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
>> > `gem_original_require'':
>> >
/home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker/models/user.rb:288:
>> > syntax error, unexpected $end, expecting kEND (SyntaxError)
>> >       from
>> >
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
>> >       `require''
>> >       from
>> >
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in
>> >       `require''
>> >       from
>> >
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:354:in
>> >       `new_constants_in''
>> >       from
>> >
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in
>> >       `require''
>> >       from
>> >
/home/slick/meetingup/vendor/plugins/facebooker/lib/facebooker.rb:24
>> >       from
>> >
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
>> >       `gem_original_require''
>> >       from
>> >
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
>> >       `require''
>> >       from
>> >
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/active_support/dependencies.rb:509:in
>> >       `require''
>> >       ... 23 levels...
>> >       from
>> >
/usr/local/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/generate.rb:1
>> >       from
>> >
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
>> >       `gem_original_require''
>> >       from
>> >
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
>> >       `require''
>> >       from script/generate:3
>> >
>> >
>>
>> _______________________________________________
>> Facebooker-talk mailing list
>> Facebooker-talk at rubyforge.org
>> http://rubyforge.org/mailman/listinfo/facebooker-talk
>
> --
> Mike Mangino
> http://www.elevatedrails.com
>
>
>
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk
>