I want to deploy a specific Git commit with Capistrano. StackOverflow 
has an entry telling me what to do:

   
http://stackoverflow.com/questions/918011/how-do-i-target-a-specific-commit-sha-with-capistrano-deploy

and so I issue this command:

   $ cap -S branch=715053c771d25c2c3cf503df6e1a55aa50c6f4f5 deploy

Git checks out not this commit, but its parent, 
870a1990b29a4cf0454834a468e2b6d5a4b5671c :

   * executing `deploy'
   * executing `deploy:update'
  ** transaction: start
   * executing `deploy:update_code'
     executing locally: "git ls-remote [email protected]:vedio.git master"
   * executing "git clone  [email protected]:vedio.git 
/mnt/app/releases/20090811200839 && cd 
/mnt/app/releases/20090811200839 && git checkout  -b deploy 
870a1990b29a4cf0454834a468e2b6d5a4b5671c && (echo 
870a1990b29a4cf0454834a468e2b6d5a4b5671c > 
/mnt/app/releases/20090811200839/REVISION)"
     servers: ["ec2-75-101-250-203.compute-1.amazonaws.com"]
     [[email protected]] executing command
  ** [ec2-75-101-250-203.compute-1.amazonaws.com :: out] Initialized 
empty Git repository in /mnt/app/releases/20090811200839/.git/
  ** [ec2-75-101-250-203.compute-1.amazonaws.com :: out] remote: 
Counting objects: 1507, done.
  ** [ec2-75-101-250-203.compute-1.amazonaws.com :: out] remote: 
Compressing objects:   0% (1/1286)
  ...

The parent commit was the first for this branch, though I don't see 
what that has to do with anything.

Any ideas?

Thanks,

Scott

P.S. You're welcome, all of you who wrote about the BBQ. It was a 
great party, eh? And no worries about left-over alcohol, it will all 
be consumed eventually.

--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to