Capistrano can deploy branches, tags, and sha's. In order to support tags and sha's it needs to ensure there is no ambiguity that's left on the remote box when it's done.
'deploy' was chosen so that you KNOW that the sha it's pointing to is something other than a real branch name. For example lets say you deploy master. Then you deploy tag v1.2.2. Git will show that your still on master except HEAD will actually be pointing to the sha at the tip of v1.2.2. Confusing right? I know. Same thing occurs with deploying a specific sha. When you look closely at what capistrano does you begin finding out that cap enumerates whatever you specify in :branch as a sha; and you are actually always deploying via that sha; not checking out a branch. So cap creates a local branch called deploy and then resets its head to point to the sha that was enumerated at deploy time. You CAN change the 'deploy' name but you are playing with fire if you are counting on that name pointing to the same sha that origin/<branchname> does. On Feb 26, 2013, at 4:59 AM, fré de vries <[email protected]> wrote: > Hi all, > > When i run 'cap deploy' , capistrano checks out a new branch in the just > created releases/xxxxxxxxx/ directory. > As i can see on my screen during deployment, Capistrano does this with the > command > git checkout -q -b deploy a4f187cf3dbd4294dc2fb4cc31b222eed79c51d5 > > as you can see, a new branch is created name 'deploy' > > I do not like this, i'd like to name this branch after the branch being > checked out. So if i do 'cap -s branch=MY_BRANCH deploy' , the checkout > command should be > git checkout -q -b MY_BRANCH a4f187cf3dbd4294dc2fb4cc31b222eed79c51d5 > > Can this be done? > > -- > -- > * You received this message because you are subscribed to the Google Groups > "Capistrano" group. > * To post to this group, send email to [email protected] > * To unsubscribe from this group, send email to > [email protected] For more options, visit this group at > http://groups.google.com/group/capistrano?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Capistrano" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > -- -- * You received this message because you are subscribed to the Google Groups "Capistrano" group. * To post to this group, send email to [email protected] * To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano?hl=en --- You received this message because you are subscribed to the Google Groups "Capistrano" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
