You mean 'git status'? If yes, then vendor is no longer shown as an "Untracked file" and all of the thinking-sphinx files show up as new files. Presumably a commit will take care of all the new file stuff. So, I guess I'm OK. Right? :-)
Thanks! Ken On Jun 5, 2009, at 3:49 PM, Pat Allan wrote: > > Ah, I was working off the completely wrong assumption then :) > > What's the output of 'git st' if you do 'git add vendor'? > > -- > Pat > > On 05/06/2009, at 6:45 PM, Ken Hudson wrote: > >> >> Hi Pat, >> >> Well, I guess I am a bit confused... :-) I installed Thinking >> Sphinx >> like this: >> >> script/plugin install git://github.com/freelancing-god/thinking- >> sphinx.git >> >> Now, I'd like to deploy my app to my staging server. So, I'm trying >> to add the vendor directory (which would include the plugins/ >> thinking- >> sphinx directory) to my local git repository so I can then push those >> changes up to my private github repository. I'm just unsure how you >> add the vendor directory to the local git repository, though. Does >> this make sense? >> >> Thanks for the help!! Ken >> >> >> On Jun 5, 2009, at 3:31 PM, Pat Allan wrote: >> >>> >>> Hi Ken >>> >>> Git will not add directories - but you can add a file in those >>> directories for them to be created. If you want to ensure those >>> directories exist, just add an empty .gitignore file within the dir. >>> >>> As for ignoring plugins - if you've installed Thinking Sphinx using >>> git itself (instead of script/plugin install), it keeps it as a >>> separate git repository, and so there is a .git directory in vendor/ >>> plugins/thinking_sphinx/.git. If you want to ignore the git history >>> of >>> the plugin, and just keep all the files in your own repo (which is >>> what script/plugin install does), just remove that .git folder (in >>> vendor/plugins/thinking_sphinx - not your own .git folder in >>> RAILS_ROOT), and you should be able to add those files. >>> >>> If you'd rather Thinking Sphinx as a separate git repository, then >>> 'git submodule' is what you should read up on. Personally, I'd >>> recommend installing Thinking Sphinx as a gem instead, and add the >>> relevant lines to your environment.rb file -- see the last section >>> on >>> this page: >>> http://freelancing-god.github.com/ts/en/ >>> installing_thinking_sphinx.html >>> >>> Keep in mind the latest version of TS is 1.1.20 though. >>> >>> Hope this is at least somewhat understandable, given it's a Friday >>> evening. >>> >>> Cheers >>> >>> -- >>> Pat >>> >>> On 05/06/2009, at 6:18 PM, Ken Hudson wrote: >>> >>>> >>>> Good Friday Afternoon, >>>> >>>> I'm using git for the first time on my new project and I just >>>> installed Thinking Sphinx. How do I best handle getting the Vendor >>>> directory into my local git repository? I've read that git doesn't >>>> track directories and there's an issue with empty directories but >>>> it >>>> doesn't look like there are any empty directories in Vendor. So... >>>> can I just enter "git add Vendor"? What if there were empty >>>> directories in Vendor? >>>> >>>> Thanks, Ken >>>> >>>>> >>> >>> >>>> >> >> >>> > > > > --~--~---------~--~----~------------~-------~--~----~ SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby -~----------~----~----~----~------~----~------~--~---
