Patches: Browse | Submit New | Admin
This patch improves performance of git deployments. Currently, vlad deletes and clones the entire git repo from the remote host on each deployment. For large projects with many remote hosts, this can take several minutes. This patch performs a `git clone` only on the first deployment. On subsequent deployments, it performs a `git fetch` and `git reset --hard` to fetch only new changes from the scm host. It's inspired by the Capistrano "sync" command for the Git strategy (http://github.com/jamis/capistrano/blob/df0935c4c135207582da343aacdd4cf080fcfed0/lib/capistrano/recipes/deploy/scm/git. rb#L187) and topfunky's pastie (http://pastie.textmate.org/101838) Here's the patch on Github: http://github.com/ktheory/vlad/commit/df3def02229dead3b99867fd772fa85ce18b25db
Add A Comment:
Date: 2009-07-28 22:51 Sender: Aaron Suggs Ah, thanks Ryan. It looks like this is assigned to John Barnette in the vlad category now. FYI, I asked Garry Dolley, the author of the current git strategy for his $0.02. He thought this patch looked good. See my query: http://twitter.com/ktheory/status/1955101694 And Garry's response: http://twitter.com/up_the_irons/status/1958 137737 Cheers, Aaron
Date: 2009-07-28 22:23 Sender: Ryan Davis when you don't assign a category OR a person, nobody sees these.