This project is archived and is in readonly mode.

#3896 ✓stale
keturn

Generator::Commands::Create#file git broken with app generator

Reported by keturn | February 8th, 2010 @ 05:43 AM | in 2.3.10

The git support for Generator::Commands::Create#file uses relative_destination. But when doing the initial app generation, the working directory is the parent of the app directory, and from there relative_destination is broken. This results in a pile of error messages like

$ rails fooproj --git
      create  Rakefile
fatal: pathspec 'Rakefile' did not match any files
...
      create  log/test.log
fatal: pathspec 'log/test.log' did not match any files

...not that you really want log/test.log tracked by your VCS, but that's another story.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages