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 put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

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