capistrano/capistrano — pull request #586 by diebels727 (2013-07-31 18:23:01+00:00)
Title: Deploy via branchless bundle failing.

We deploy via a bundle that does not have any tags or branches. The issue is the addition of the "-b ", shown in the outputs of each operation for two revisions below:

v2.15.4 (does not work):

git clone -b --depth 1

v.2.14.2 (works)

git clone --depth 1

I traced the problem for us to 6f84111.

If we are deploying the master branch from a repo, v2.15.4 will attempt to clone branch master from the bundle, which does not work since the bundle is only a collection of refs.