puppetlabs/packaging — pull request #44 by MosesMendoza (2012-10-08 20:04:25+00:00)
Title: Make git repo check more robust

Currently the git repo check switching on a .git directory
existing in the rake root. This doesn't work if the top-level
Rakefile exists in a subdirectory of the project. Instead, we
can use git rev-parse --git-dir to more effectively determine
if we're in a git repo.

Signed-off-by: Moses Mendoza