pypa/pip — pull request #967 by carljm (2013-05-29 20:06:46+00:00)
Title: Use git show-ref instead of git branch for better future-proofness.

Based on original patch by Anrs Hu in #966.

Passes all tests; I think it reproduces the previous behavior but more reliably.