capistrano-scm-gitcopy icon indicating copy to clipboard operation
capistrano-scm-gitcopy copied to clipboard

Doesn't work without remote

Open cbrunnkvist opened this issue 8 years ago • 3 comments

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 avatar Jan 16 '17 08:01 cbrunnkvist

@cbrunnkvist did you fin a clean-way to address this? Thanks!

thbar avatar Feb 12 '17 16:02 thbar

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/"

vonKingsley avatar Mar 09 '17 04:03 vonKingsley

💯 Wow pro tip. Thanks buddy.

xuwupeng2000 avatar Mar 09 '17 05:03 xuwupeng2000