Scanning for Git submodules is now an option, not enabled by default

parent 79b56ce2
...@@ -174,6 +174,12 @@ def _get_parser(): ...@@ -174,6 +174,12 @@ def _get_parser():
version=parser.prog + version=parser.prog +
" " + " " +
__version__) __version__)
parser.add_argument(
'-m',
'--submodule',
action='store_true',
dest="submodule",
help="enable automatic Git submodule scanning",)
parser.add_argument( parser.add_argument(
"--log", "--log",
dest="log", dest="log",
......
...@@ -176,7 +176,8 @@ PARSE START: %s ...@@ -176,7 +176,8 @@ PARSE START: %s
# Process the parsed manifest_dict to assign the module properties # Process the parsed manifest_dict to assign the module properties
self.process_manifest() self.process_manifest()
self.process_git_submodules() if self.pool.options.submodule:
self.process_git_submodules()
# Parse every detected submodule # Parse every detected submodule
for module_aux in self.submodules(): for module_aux in self.submodules():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment