Capistrano 2.1.0 has been released last weekend and now officially has GIT support. Since we're moving from SVN to GIT, I tried it and it seems to work pretty wel. At work, we use webistrano to deploy our applications and found out that webistrano didn't want to deploy with GIT.
First, webistrano uses a frozen capistrano version (2.0.0) in the vendor/plugins directory. This I removed. After that, I found out that when deploying, webistrano also calls query_revision() . For SVN, this works, since a remote repository can be queried, but since GIT clones repositories, instead of checking them out as SVN does, the query_revision doesn't quite work.
The quick hack is to replace line 67 in webistrano's lib/webistrano/deployer.rb with:
exchange_real_revision(config) unless config[:scm] == "git"
0 Responses to “Webistrano, git and capistrano 2.1.0”