capistrano/capistrano — Issue #138: copy_exclude not working with git submodules
Author: Mihailoff
Created: 2011-12-22 09:16:27+00:00
State: open

With this config the deployed files include .git directory in submodules.

set :application, "app"
set :repository, "file:///home/user/www/app"
set :scm, :git
role :web, "re.mo.te.ip"

set :deploy_to, "/storage/app"
set :user, "toor"
set :password, "secret"
set :use_sudo, false
set :deploy_via, :copy
set :copy_exclude, [".git", ".gitignore", ".gitmodules", "Capfile"]
set :git_enable_submodules, 1