What version of Cap are you using? The newer one _should_ be removing the .git directory. However, it's still not very efficient, because it just checks out everything and then removes the '.git' dir - you might want to try the 'set :git_shallow_clone, 1' command, which should be closer to an export and will leave the .git dir but should not include much in it.
Scott On Sun, May 25, 2008 at 9:11 AM, Mirko <[EMAIL PROTECTED]> wrote: > > We are using Capistrano to deploy an application stored in Git. We > specify "set :deploy_via, :copy" to transfer a tarball via ssh, rather > than checking out the code on the remote server. All of this works > great, except for one minor hitch: > > After we accidentally checked a large file into Git, deployments were > suddenly taking a long time. Even after we removed the file, this > situation did not improve. This turned out to be because the tarball > includes not just the code, but also the ".git" directory, which > contains the entire version history. So even if we hadn't checked in a > huge file right now, this style of deployment would eventually become > very slow as the revision history grows (particularly since many > broadband connections are still fairly limited in upload bandwidth). > > What would be the easiest way to modify the Capistrano / Git > deployment tasks to exclude the ".git" directory? Do you think this > should be the default? > > -Mirko > > > > --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
