Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

[PATCH] Rails templates: git command doesn't run inside a directory

#2466

writting a template you can't do this because git command just runs in root directory:

inside('lib') do

 git :clone => "an_external_library_that's_not_a_plugin_nor_a_gem"

end

Reported by calavera · April 9th, 2009 @ 02:37 PM

State: resolved
Milestone: 3.0.2
Assigned to: José Valim José Valim
Importance: none

Activity

  1. calavera
    calavera
    • Tag changed from 2.3.x, patch, railties, templates to 2.3.x, patch, railties, templates, tiny

    April 9th, 2009 @ 02:41 PM

  2. YoNoSoyTu
    YoNoSoyTu

    +1

    Minimum patch, with docs and test included. Applies perfectly, works as announced and seems like a logical feature to have.

    I have tried to find the reason for that in_root around all the code of the git method, but seems to be there from the starting patch to include generators and in the original rg code from Jeremy Mcanally (which lacks of history on his GitHub repository).

    April 9th, 2009 @ 11:14 PM

  3. José Valim
    José Valim
    • Assigned user set to José Valim
    • Milestone cleared.

    August 10th, 2009 @ 11:21 AM

  4. Repository
  5. José Valim
    José Valim
    • State changed from new to resolved

    September 1st, 2009 @ 12:16 PM

  6. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to

    October 15th, 2010 @ 11:01 PM