How to update rails plugins installed through git but in svn repo?

My rails app is in the svn repository, but several plugins are installed via git and then added to the svn repository. How can I update these plugins? It seems I can not get the script / plugin update to do anything. I would really like to update activemerchant to get rid of Inflector warnings.

+3
source share
6 answers

If you haven’t made any local changes to the plugin, and you don’t need to keep track of what changes will be made to this update, you can simply start script/plugin installagain, passing --forceif you need, For example:

script/plugin install --force git://github.com/dchelimsky/rspec.git
+2
source

, Subversion, script/plugin, , Git checkout Subversion:

git clone git://github.com/foo/bar.git ~/foobar
mv ~/foobar/.git rails_app/vendor/plugins/foobar/.git
rm -rf ~/foobar
cd rails_app/vendor/plugins
git reset --hard

.git , Subversion, . Git, , .. , , .

+2

, , , SVN, . ( tmp, , ) . .

+1

: git pull . , script/install plugin git.

0

Git Git, .git , , Subversion. , Git " Git".

0

Go into the same situation and take advantage of this solution: paperclip was installed as a plugin sitting in svn repo as part of my application. Now I wanted to use the latest version instead and did not change a bit of the paperclip plugin so that I could easily remove it from the / svn application and set it as a gem instead. done.

0
source

Source: https://habr.com/ru/post/1698226/


All Articles