Using `git rev-parse --show-toplevel` can not guarantee the result of the command is correct.
Activity
devjoe commentedon Aug 2, 2016
Ref: http://stackoverflow.com/questions/7359204/git-command-line-know-if-in-submodule