Jamis thank you - sounds like ive a compile job for git 'mutter', i will try the scm_verbose thing.
A newer version of git - hey that sounds fun. On Jan 22, 5:58 pm, Jamis Buck <[email protected]> wrote: > The error is actually this: > > ** [server :: out] Usage: /usr/bin/git-fetch <fetch-options> > <repository> <refspec>... > > Your git on the server is old. Capistrano will try and tell git to be > quiet by passing the -q switch, but git's prior to about 1.5.6 don't > understand it for git-fetch. > > There are two ways to fix this. The first is to tell Capistrano that you > want verbose output: > > set :scm_verbose, true > > That will make Capistrano NOT send the -q switch. > > The other way is to just upgrade git on your server to a version that > groks -q on git-fetch. > > - Jamis > > On 1/22/09 10:50 AM, sjwest wrote: > > > Being verbose here it comes > > > Version > > > cap -V > > Capistrano v2.5.3 > > > deploy:setup > > > cap deploy:setup > > * executing `deploy:setup' > > * executing "sudo -p 'sudo password: ' -u root mkdir -p /place/apps/ > > appname /place/apps/appname/releases /place/apps/appname/shared /place/ > > apps/appname/shared/system /place/apps/appname/shared/log /place/apps/ > > appname/shared/pids && sudo -p 'sudo password: ' -u root chmod g+w / > > place/apps/appname /place/apps/appname/releases /place/apps/appname/ > > shared /place/apps/appname/shared/system /place/apps/appname/shared/ > > log /place/apps/appname/shared/pids" > > servers: ["server"] > > Enter passphrase for /home/sjwest/.ssh/id_rsa: > > Password: > > [server] executing command > > command finished > > cap deploy:check > > * executing `deploy:check' > > * executing "test -d /place/apps/appname/releases" > > servers: ["server"] > > Enter passphrase for /home/sjwest/.ssh/id_rsa: > > Password: > > [server] executing command > > command finished > > * executing "test -w /place/apps/appname" > > servers: ["server"] > > [server] executing command > > command finished > > * executing "test -w /place/apps/appname/releases" > > servers: ["server"] > > [server] executing command > > command finished > > * executing "which git" > > servers: ["server"] > > [server] executing command > > command finished > > * executing "test -w /place/apps/appname/shared" > > servers: ["server"] > > [server] executing command > > command finished > > You appear to have all necessary dependencies installed > > > cap deploy:cold > > * executing `deploy:cold' > > * executing `deploy:update' > > ** transaction: start > > * executing `deploy:update_code' > > updating the cached checkout on all servers > > executing locally: "git ls-remote git://'url here to git' master" > > * executing "if [ -d /place/apps/appname/shared/cached-copy ]; then > > cd /place/apps/appname/shared/cached-copy && git fetch -q origin && > > git reset -q --hard 3459b7473d2b5c7e1939af7d0e6c51576a11ee57; else git > > clone -q git://nameofgitlocal.git /place/apps/appname/shared/cached- > > copy && cd /place/apps/appname/shared/cached-copy && git checkout -q - > > b deploy 3459b7473d2b5c7e1939af7d0e6c51576a11ee57; fi" > > servers: ["server"] > > Enter passphrase for /home/sjwest/.ssh/id_rsa: > > Password: > > [server] executing command > > ** [server :: out] Usage: /usr/bin/git-fetch <fetch-options> > > <repository> <refspec>... > > command finished > > *** [deploy:update_code] rolling back > > * executing "rm -rf /place/apps/appname/releases/20090122173401; > > true" > > servers: ["server"] > > [server] executing command > > command finished > > failed: "sh -c \"if [ -d /place/apps/appname/shared/cached-copy ]; > > then cd /place/apps/appname/shared/cached-copy && git fetch -q origin > > && git reset -q --hard 3459b7473d2b5c7e1939af7d0e6c51576a11ee57; else > > git clone -q git://housetoproject.git /place/apps/appname/shared/ > > cached-copy && cd /place/apps/appname/shared/cached-copy && git > > checkout -q -b deploy 3459b7473d2b5c7e1939af7d0e6c51576a11ee57; fi\"" > > on server > > > On Jan 22, 4:21 pm, Jamis Buck <[email protected]> wrote: > >> I don't see the "unexpected token" message anywhere? Could you pastie > >> the full output and share? --~--~---------~--~----~------------~-------~--~----~ To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/capistrano -~----------~----~----~----~------~----~------~--~---
