Esempio n. 1
0
 def update(self,
            init: bool = False,
            depth: Optional[int] = None,
            single_branch: bool = False,
            jobs: Optional[int] = None,
            recursive: bool = False,
            checkout: bool = False,
            rebase: bool = False,
            merge: bool = False) -> None:
     GitOnline.submodule_update(self.repo_path,
                                init=init,
                                depth=depth,
                                single_branch=single_branch,
                                jobs=jobs,
                                recursive=recursive,
                                checkout=checkout,
                                merge=merge,
                                rebase=rebase,
                                paths=[self.submodule_path])
Esempio n. 2
0
 def submodule_update(self,
                      init: bool = False,
                      depth: Optional[int] = None,
                      single_branch: bool = False,
                      jobs: Optional[int] = None,
                      recursive: bool = False,
                      remote: bool = False,
                      checkout: bool = False,
                      rebase: bool = False,
                      merge: bool = False,
                      paths: Optional[List[Path]] = None) -> None:
     CONSOLE.stdout(' - Update submodules')
     GitOnline.submodule_update(self.path,
                                init=init,
                                depth=depth,
                                single_branch=single_branch,
                                jobs=jobs,
                                recursive=recursive,
                                remote=remote,
                                checkout=checkout,
                                merge=merge,
                                rebase=rebase,
                                paths=paths)