Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

capistrano rails 3 git error - fatal: Not a git repository (or any of the parent directories): .git

I dont use git, but after upgrading to ruby 1.9.3 and rails 3.017 and using cap to deploy, I get these errors all over the place:

fatal: Not a git repository (or any of the parent directories): .git

They don't seem to break anything, but they are annoying. I dont use git, how do I make these go away?

More information (here is what I see)

$ cap pirmtlddemo deploy:long  
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
* executing `pirmtlddemo'
* executing `deploy:long'
** transaction: start
* executing `deploy:update_code'

Note, I had similar warnings when trying to run localy (rails s) that I got rid of by doing a "git init"

thanks Joel

like image 498
Joelio Avatar asked Nov 12 '12 19:11

Joelio


1 Answers

Ok, I figured this out, it looks like several gems including clearance, gvis, jquery-rails, vestal_versions have included in their gemspec's a dependency on git, see https://github.com/thoughtbot/clearance/blob/master/clearance.gemspec#L17. I am not sure why they do this, seems like an unnecessary dependency...

like image 138
Joelio Avatar answered Nov 20 '22 01:11

Joelio