Topic: capistrano from windows with git and deploy_via copy
I have a problem that capistrano ignores the directory set in :copy_dir
My capistrano setting are the following (besides the usual stuff):
set :deploy_via, :copy
set :copy_dir, "C:/caches/myapp"
The directory C:/caches/myapp exists
I'm running:
C:\myapp>cap deploy
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
executing locally: "git ls-remote ssh://git@myhost.com:myport/~/myapp HEAD"
* getting (via checkout) revision b6f590f2d59b3f6ae14e1f5278512f7f1b4edd1a to
C:/caches/myhost.com/20100312233007
executing locally: git clone -q ssh://git@myhost.com:myport/~/myapp C:\caches\myhost.com\20100312233007 && cd /D C:\caches\myapp.com\20100312233007 && git checkout -q -b deploy b6f590f2d59b3f6ae14e1f5278512f7f1b
4edd1a
warning: Remote branch deploy not found in upstream origin, using HEAD instead
* processing exclusions...
*** [deploy:update_code] rolling back
....
(and a whole bunch of errors)
Even though I specify the directory where to place a copy (to where clone the repository), I still have the repository cloned into my current directory C:\myapp as if the output directory is not specified in git clone. Then I get errors because capistrano tried to deploy from a non-existing directory C:\caches\myhost.com\20100312233007.
However if I manually run
git clone -q ssh://git@myhost.com:myport/~/myapp C:\caches\myhost.com\20100312233007
it places the copy into the correct directory.
It either doesn't make the command right (even though printing it out right) or may be silently fails to create a new directory. Any ideas?
The capistrano version is 2.5.17
After I switched to the latest version of git, "git clone" started to crash with a "Too many arguments" error.
Last edited by whiterabbit (2010-03-25 18:07:44)