title: Capistrano using sudo git clone instead of git clone
body: <p>Here's my Capistrano file:</p>
  
  <pre><code>set :application, "mydemoapp"
  set :repository,  "git@bitbucket.org:sergiotapia/mydemoapp.git"
  set :scm, :git
  
  set :user, "serg" # The user on the VPS server.
  set :use_sudo, false
  set :deploy_to, "/opt/nginx/html/#{application}"
  set :deploy_via, :remote_cache
  set :keep_releases, 1
  set :rails_env, "production"
  set :migrate_target, :latest
  
  role :web, "192.168.1.1"  # Your HTTP server, Apache/etc
  role :app, "192.168.1.1"  # This may be the same as your `Web` server
  role :db,  "192.168.1.1", :primary =&gt; true # This is where Rails migrations will run
  </code></pre>
  
  <hr>
  
  <blockquote>
    <p>The IP addresses above are obviously fake, I'm using the IP for my VPS
    server in real life.</p>
  </blockquote>
  
  <p>I ran this command, to verify that BitBucket is allowing me to access the repository:</p>
  
  <pre><code>sergiotapia@jarvis1:~/.ssh$ ssh -T hg@bitbucket.org
  conq: logged in as sergiotapia.
  
  You can use git or hg to connect to Bitbucket. Shell access is disabled.
  </code></pre>
  
  <p>However, running <code>cap deploy</code> again, I get:</p>
  
  <pre><code>[198.211.101.99] executing command
   ** [192.168.1.1:: err] Permission denied (publickey).
   ** [192.168.1.1:: err] fatal: The remote end hung up unexpectedly
      command finished in 1026ms
  *** [deploy:update_code] rolling back
    * executing "rm -rf /opt/nginx/html/demoapp/releases/20130601025656; true"
  </code></pre>
  
  <p>I tried using <code>git clone</code> from my SSH terminal, manually and it worked fine as expected. My project cloned to a folder properly.</p>
  
  <p>It seems Capistrano is running <code>sudo git clone</code> instead of <code>git clone</code>. This is verified by myself running a <code>sudo git clone</code> in the same folder manually on my SSH. Same <code>Permission denied (publickey)</code> error. </p>
  
  <p>Why isn't my Capistrano setting for <code>:use_sudo, false</code> being used?</p>