capistrano – git ls-remote -h doesn't have the git url

I’m new to using Capistrano. I set it up correctly, but when I run cap staging deploy I get this –

DEBUG [b678d5eb] Command: ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/myproj/git-ssh.sh /usr/bin/env git ls-remote -h  )
DEBUG [b678d5eb]    usage: git ls-remote [--heads] [--tags]  [-u <exec> | --upload-pack <exec>] <repository> <refs>...
DEBUG [b678d5eb] Finished in 0.325 seconds with exit status 129 (failed).

I think the git clone url should follow after the -h, but I’m not sure.

  • Rails 4 + Capistrano 3 : fatal: Could not read from remote repository while deploying
  • Capistrano deployment without internet access on server
  • Deploying a git submodule with Capistrano 3
  • Trouble using capistrano 3 while deploying
  • Rails deployment to staging using capistrano generates the following error
  • Deploying a git local repository with Capistrano 3
  • I’m using Capistrano 3.2.1. Here’s my deploy.rb –

    lock '3.2.1'
    set :application, 'myproj'
    set :repository, 'https://vrao@git.test.com/scm/~vrao/myproj.git'
    set :scm_passphrase, 'blah'
    

    Any help would be great.

  • On the brink of understanding version control with Git … still confused by a couple things
  • Recovering a local deleted file
  • Git working copy within a Subversion Repository
  • Error when reordering commits with git rebase -i
  • How do developers receive git pull requests?
  • Efficient storage of binary files in a git repository
  • One Solution collect form web for “capistrano – git ls-remote -h doesn't have the git url”

    Never mind, I was following the documentation for capistrano 2x, while I have 3.2.1 installed.

    For anyone who might face the same issue, in capistrano 2x you specify the git repo by setting the repository variable, while in 3x it’s been changed to repo_url. I changed it and now it works fine. Here’s the documentation I would recommend to follow for 3x –
    http://capistranorb.com/documentation/getting-started/installation/

    Git Baby is a git and github fan, let's start git clone.