Does anyone encounter deploying Capistrano from a Git repository over HTTP?
The following deploy.rb file does not work:
set :repository, 'http://git.repository-domain.com:4442/git/repo.git' set :scm_username, "git_username" set :scm_password, "git_password" set :scm, :git
It works if you pass the repository as follows:
set :repository, 'http://git_username: git_password@git.repository-domain.com :4442/git/repo.git'
The latter only works as long as the user or password does not have special characters. The URL encoding of these characters will crash.
UPDATE : a more accurate description of the problem is available on the ticket https://github.com/capistrano/capistrano/issues/384
source share