Bugs: Browse | Submit New | Admin

[#22433] Vlad 1.2.0 cannot deploy from another Git branch than master ?

Date:
2008-10-15 14:37
Priority:
3
Submitted By:
Nicolas Fouché (nfo)
Assigned To:
Wilson Bilkovich (wilson)
Category:
vlad
State:
Open
Summary:
Vlad 1.2.0 cannot deploy from another Git branch than master ?

Detailed description
The Vlad::Git.checkout method clones a git repository and checkout a branch (named a ’revision’) with the command:

git checkout -f -b deployed-#{revision} #{revision}

The problem is that after having cloned a repository, all remote branches are not checked out in the local repository.
To checkout them and make them ‘synchronous’, the following command must be used:

git checkout -f -b #{my-branch} origin/#{my-branch}

So, we have to patch Vlad to call the later command, i.e.:

git checkout -f -b deployed-#{revision} origin/#{revision}

Add A Comment: Notepad

Please login


Followup

Message
Date: 2009-03-06 00:20
Sender: Ryan Davis

1) you don't have to patch vlad at all. you can monkey patch
it just fine.

2) I don't (or try not to, I should say) use git, but the person
who wrote git.rb uses it all the time, so I'll have him look
at your bug, but I believe there was a reason for his logic.

3) I'm looking for maintainers for all of the non-default modules
If the original author can't take it over, are you interested?

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
assigned_tozenspider2009-03-06 00:20zenspider