Path to the root of the git archive from current.
Resolves the path to the git directory. Not necessarily the same as the root. Useful for finding the root of a hierarchy of submodules.
If the current working directory is a git repo
Copyright (c) 2017, Joakim Brännström. All rights reserved.