Bugs: Browse | Submit New | Admin

[#25788] Setting up git submodules upon deployment

Date:
2009-05-05 20:39
Priority:
3
Submitted By:
Balazs Nagy (julian7)
Assigned To:
John Barnette (jbarnette)
Category:
vlad
State:
Open
Summary:
Setting up git submodules upon deployment

Detailed description
Currently lib/vlad/git.rb doesn't support submodules, which can be a problem if vendor dir's contents are submodules.

AFAIK it needs to change both checkout and export methods.  The first one could be handled like this:

git clone #{repository} #{destination}
cd #{destination}
git checkout -f -b deployed-#{revision} #{revision}
git submodule update --init

I'm still thinking how export could be fixed (git archive doesn't archive submodules), maybe a much simpler (cd repo
&& tar cf -) | (cd #{destination} && tar xf -) would be better.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2009-08-21 07:11
Sender: Balazs Nagy

Sure, I'll do it right after I return from my holidays.
Date: 2009-08-20 21:58
Sender: John Barnette

I've extracted Vlad's Git support, and the canonical repo is
on GitHub: http://github.com/jbarnette/vlad-git

Would you like to take a stab at a fork and a patch there?
Date: 2009-05-11 14:46
Sender: Balazs Nagy

I did it.
http://github.com/julian7/vlad/commit/3cdad0d7e3916c5c792d5f64e42
ac491d629f1ee

WFM, I haven't even bothered trying to set up the test
environment.  Maybe in another patch.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
assigned_tozenspider2009-07-30 00:33zenspider