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 -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

android - Unable to generate FCM token from dynamically instantiated Firebase -