capistrano 3.5 use git https repo
<p>i have a an server where i want to deploy my source code via capistrano.
i can acces a deployment user via ssh on this server, but the repo i am pulling from is actually only accessible via https. 
I am using capistrano 3.5  and</p>

<p>cap staging doctor</p>

<p>shows the following in variables. There may be more than standard cap, but i think what they do is obvious.</p>

<p>Variables</p>

<pre><code>:application                 "capistrano_deployment"
:branch                      "master"
:default_env                 {}
:deploy_prefix               ""
:deploy_root                 "/var/www"
:deploy_to                   "/var/www/capistrano_deployment"
:format                      :airbrussh
:git_environmental_variables {:git_askpass=&gt;"/bin/echo", :git_ssh=&gt;"/tmp/capistrano_deployment/git-ssh.sh"}
:keep_releases               5
:local_user                  "myuser"
:log_level                   :debug
:pty                         true
:repo_url                    "https://myuser@git.internal.net/git/capistrano_deployment.git"
:scm                         :git
:stage                       :staging
:target_directory            "capistrano_deployment"
:tmp_dir                     "/tmp"
</code></pre>

<p>the problem i have is that the deployment fails, because capistrano doesn't ask me for a password for git this repository, which is accessed by https and <em>not</em> as capistrano seems to assume via ssh. </p>

<pre><code> INFO [ce69c094] Running /usr/bin/env git ls-remote --heads https://myuser@git.internal.net/git/capistrano_deployment.git as deploy@…
DEBUG [ce69c094] Command: ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/tmp/capistrano_deployment/git-ssh.sh" ; /usr/bin/env git ls-remo…
DEBUG [ce69c094]       fatal: Authentication failed for 'https://myuser@git.internal.net/git/capistrano_deployment.git/'
</code></pre>

<p>What do i need to change that capistrano ask for a password for the https url -  and hopefully only once and not for every git query, which is executed by capistrano?
Also there seems to be solution to deploy the username and password in .netrc in cleartext (NOT AN OPTION!). Want to avoid such a solution at all cost</p>