title: Capistrano + Git : repository local to production server
body: <p>I am trying to do 'deploy:cold' for my app. The git repo is local to
  my deployment server (i.e. I only have one server for everything and I
  don't host my code on github).</p>
  
  <p>Here is the transcript (replaced my app name with "myapp" for privacy)</p>
  
  <pre><code>  * executing `deploy:cold'
    * executing `deploy:update'
   ** transaction: start
    * executing `deploy:update_code'
      executing locally: "git ls-remote /home/mrichman/git/myapp.git master"
  fatal: '/home/mrichman/git/myapp.git' does not appear to be a git repository
  fatal: The remote end hung up unexpectedly
  *** [deploy:update_code] rolling back
    * executing "rm -rf /var/www/myapp.com/releases/20100218203108; true"
      servers: ["myapp.com"]
  Password:
      [myapp.com] executing command
      command finished
  Command git ls-remote /home/mrichman/git/myapp.git master returned status code 32768
  </code></pre>
  
  <p>Here is my deploy.rb: <a href="http://pastie.org/831424" rel="nofollow noreferrer">http://pastie.org/831424</a></p>
  
  <p>I have also tried</p>
  
  <pre><code>set :repository, "deploy@localhost:/home/mrichman/git/myapp.git"
  </code></pre>
  
  <p>but that gives me</p>
  
  <pre><code>ssh: connect to host localhost port 22: Connection refused
  </code></pre>
  
  <p>Any ideas are appreciated.</p>