How to retrieve root repository folder from git submodule -
topmost folder of git repository can retrieved git rev-parse --show-toplevel
. find out if there way determine such folder path root repository within nested submodule. naive way solve recursively retrieve path submodule , change parent folder until no longer within git repository, looks awkward overkill. there simpler, more canonical way retrieve such information?
Comments
Post a Comment