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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

Command prompt result in label. Python 2.7 -