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

Popular posts from this blog

javascript - Knockout pushing observable and computed data to an observable array -

Trouble making a JSON string -

sitecore - Resolve ISitecoreService using SimpleInjector -