Can you run 'git --version' on your server and post that back to us? On Mon, May 19, 2008 at 1:32 PM, Aurels <[EMAIL PROTECTED]> wrote: > > Hi. I'm facing a problem for some days now. I just can't deploy a > rails project which uses git submodules for vendor/rails and all > plugins. > > I patched cap to support git submodules, so it should work. > > I've got this in my deploy.rb file: > > ########## > > set :scm, :git > set :branch, "master" > set :deploy_via, :remote_cache > set :git_enable_submodules, 1 > > ########## > > The command fails to execute on the remote host saying that > "submodule" isn't a git command: > > ########## > > gangsta:malisart aurels$ cap deploy > * executing `deploy' > * executing `deploy:update' > ** transaction: start > * executing `deploy:update_code' > * executing "git clone [EMAIL PROTECTED]:aurels/malisart.git /var/rails/ > malisart-gittest/releases/20080519202937 && cd /var/rails/malisart- > gittest/releases/20080519202937 && git checkout -b deploy > 5d2f8c331a8c7731d5c3fd0b3eae34dd3208acfc && git submodule init && git > submodule update && (echo 5d2f8c331a8c7731d5c3fd0b3eae34dd3208acfc > / > var/rails/malisart-gittest/releases/20080519202937/REVISION)" > servers: ["malisart.be"] > [malisart.be] executing command > ** [out] Initialized empty Git repository in /var/rails/malisart- > gittest/releases/20080519202937/.git/ > ** [err] Switched to a new branch "deploy" > ** [out] git: 'submodule' is not a git-command > ** > ** The most commonly used git commands are: > ** add Add file contents to the changeset to be committed > next > ** apply Apply a patch on a git index file and a working tree > ** archive Create an archive of files from a named tree > ** bisect Find the change that introduced a bug by binary > search > ** branch List, create, or delete branches > ** checkout Checkout and switch to a branch > ** cherry-pick Apply the change introduced by an existing commit > ** clone Clone a repository into a new directory > ** commit Record changes to the repository > ** diff Show changes between commits, commit and working > tree, etc > ** fetch Download objects and refs from another repository > ** grep Print lines matching a pattern > ** init Create an empty git repository or reinitialize an > existing one > ** log Show commit logs > ** merge Join two or more development histories together > ** mv Move or rename a file, a directory, or a symlink > ** prune Prune all unreachable objects from the object > database > ** pull Fetch from and merge with another repository or a > local branch > ** push Update remote refs along with associated objects > ** rebase Forward-port local commits to the updated upstream > head > ** reset Reset current HEAD to the specified state > ** revert Revert an existing commit > ** rm Remove files from the working tree and from the > index > ** show Show various types of objects > ** show-branch Show branches and their commits > ** status Show the working tree status > ** tag Create, list, delete or verify a tag object signed > with GPG > ** (use 'git help -a' to get a list of all installed git commands) > command finished > *** [deploy:update_code] rolling back > * executing "rm -rf /var/rails/malisart-gittest/releases/ > 20080519202937; true" > servers: ["malisart.be"] > [malisart.be] executing command > command finished > command "git clone [EMAIL PROTECTED]:aurels/malisart.git /var/rails/ > malisart-gittest/releases/20080519202937 && cd /var/rails/malisart- > gittest/releases/20080519202937 && git checkout -b deploy > 5d2f8c331a8c7731d5c3fd0b3eae34dd3208acfc && git submodule init && git > submodule update && (echo 5d2f8c331a8c7731d5c3fd0b3eae34dd3208acfc > / > var/rails/malisart-gittest/releases/20080519202937/REVISION)" failed > on malisart.be > > ########## > > I do not really know if it is a git or a capistrano misconfiguration. > > Thanks for help. > > >
--~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
