gitlabhq/grit — pull request #29 by rsludge (2013-06-20 21:55:03+00:00)
Title: Correct git_dir for submodules

In submodule .git is not directory. It is a file with path to git directory like that:
gitdir: /path/to/git/directory