Detect separated git-dir (e.g. submodule)
Merge pull request #12 from ichizok/detect-gitdir

Detect separated git-dir