visionmedia/git-extras — pull request #256 by spacewander (2014-09-22 03:31:07+00:00)
Title: check whether current directory is inside a git repo

add a function to check if current directory is inside a git repo. If not, return with an error code.