capistrano-scm-gitcopy
capistrano-scm-gitcopy copied to clipboard
Doesn't work without remote
If I don't have any remote specified or if I do but simply can't access it, the deploy won't make it past the git ls-remote
check method.
I tried adding a placeholder remote pointing to ${source directory}/.git/ which is valid from the git perspective, but it doesn't feel right and it includes everything in my working copy so I'd need a way to exclude stuff.
@cbrunnkvist did you fin a clean-way to address this? Thanks!
I think this is due to the new way Capistrano loads the SCM plugins. commenting out the following lines in Capfile helped me
# require "capistrano/scm/git"
# install_plugin Capistrano::SCM::Git
I also had to add
set :local_path, "/absolute_path/to/.git/"
💯 Wow pro tip. Thanks buddy.