Cap deploy hangs at Cloning into cached-copy when using jruby 1.6.7

I am using jruby 1.6.7 with rails 3.2. I am trying to deploy to my
staging envrioment (first deploy). and I just found that if I use jruby,
and run jruby -S cap staging deploy, the cap deploy process just hangs
at Cloning into <my deploy path>/cached-copy/ and never moves on. I
tried with export JRUBY_OPTS=--1.9 and without, both this way.

If I use MRI 1.9.2, then everything goes smoothly with the same
deploy.rb…

Any idea why is that?

Cheers,


Larry Zhao