Homebrew/homebrew — pull request #27227 by jaysoffian (2014-03-05 16:55:21+00:00)
Title: git: fix --HEAD builds to report proper version

For the GIT-VERSION-FILE scripts to work properly, it either
needs to have $GIT_DIR pointing to the '.git' directory or find
'.git' within the cwd.

Further, for `git describe` to work correctly, we can't use a
shallow clone (at least not one of depth 1), as it needs to find
a tag within recent history.

Signed-off-by: Jay Soffian