Guys and people at large,
I've updated the Git SCM module, and it works for me...
Could some others please have a look and critique?
http://github.com/adamsalter/capistrano/commit/2283dea45a6ff15e85851136860f366c76257022
It still works for all the test cases I can think of (and almost seems
faster ;)
To see for yourself checkout my repo... I use the following command to
make changes to the gem and install:
rake repackage && sudo gem install -l --no-ri --no-rdoc pkg/
capistrano-2.3.0.gem
Thanks,
-Adam
On May 5, 11:47 pm, "Mislav Marohnić" <
mislav.maroh...@gmail.com>
wrote:
> On Mon, May 5, 2008 at 2:34 AM, Adam Salter <
adam.q.sal...@gmail.com> wrote:
> > I've actually investigated this myself...
> > I don't think:
> > set :remote, "staging"
> > does what we think it does (neither did '-o staging' for that matter), it
> > basically just renames the remote reference on the deploy server from
> > 'origin' to whatever you choose.
>
> Well, yes. I thought that you wanted to do this (since you used the -o
> option). I corrected you to move it out of the repository URL because there
> was already an option for it in Capistrano.
>
> I was wrong to say that the :branch option is never used. It actually is in
> "recipes/deploy.rb". It uses the branch name (or "HEAD") to get the commit
> ID *from your local repository*, then uses that ID to do a remote checkout