devjoe opened this issue 9 years ago · 1 comments
Using git rev-parse --show-toplevel can not guarantee the result of the command is correct.
git rev-parse --show-toplevel
Ref: http://stackoverflow.com/questions/7359204/git-command-line-know-if-in-submodule