Patches: Browse | Submit New | Admin

[#26056] remote caching in git scm strategy

Date:
2009-05-29 02:20
Priority:
3
Submitted By:
Aaron Suggs (ktheory)
Assigned To:
John Barnette (jbarnette)
Category:
vlad
State:
Open
Summary:
remote caching in git scm strategy

Detailed description
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: Notepad

Please login


Followup

Message
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.

Attached Files:

Name Description Download
0002-Use-a-remote-caching-strategy-for-git.patch Download

Changes:

Field Old Value Date By
category_idNone2009-07-28 22:23zenspider
assigned_tonone2009-07-28 22:23zenspider
File Added4550: 0002-Use-a-remote-caching-strategy-for-git.patch2009-05-29 02:20ktheory