opscode/chef — pull request #1694 by jordane (2014-07-25 19:40:35+00:00)
Title: git provider fails on existing branch names

We have a case where our devs use the develop branch as the default branch on a project, which causes this checkout to break unless the checkout_branch is changed. This patch makes it so that if the checkout_branch already exists from the clone, the checkout will reset to the revision given (which does nothing if given HEAD that already points to this branch).