technomancy/leiningen — pull request #1243 by richo (2013-07-01 06:47:58+00:00)
Title: Use git's plumbing to lookup HEAD

Implements current branch in terms of git plumbing, guaranteeing that it doesn't explode in a repo without `.git/HEAD`, eg a submodule.