forked from datalad/datalad
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RF: gitrepo: Rewrite get_submodules() to avoid GitPython
In addition to keeping with our general direction of moving away from GitPython, this avoids an unresolved issue in GitPython's handling of submodules [0]. As documented by the new test, there is a change in behavior when get_submodules() is called in a repository that doesn't have a commit checked out: it now returns any registered submodules instead of an empty list. This is consistent with the behavior of 'git submodule' and 'datalad subdataset', and there doesn't seem to be an obvious reason not to support it. [0]: datalad#3508 (comment)
- Loading branch information
Showing
2 changed files
with
55 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters