def herd_branch(self,
                    url,
                    branch,
                    depth=0,
                    rebase=False,
                    fork_remote=None):
        """Herd branch"""

        ProjectRepo.herd_branch(self,
                                url,
                                branch,
                                depth=depth,
                                rebase=rebase,
                                fork_remote=fork_remote)
        self.submodule_update_recursive(depth)
예제 #2
0
    def herd_branch(self, url, branch, **kwargs):
        """Herd branch

        .. py:function:: herd(url, branch, depth=0, fork_remote=None, rebase=False)

        :param str url: URL of repo
        :param str branch: Branch name

        Keyword Args:
            depth (int): Git clone depth. 0 indicates full clone, otherwise must be a positive integer
            fork_remote (str): Fork remote name
            rebase (bool): Whether to use rebase instead of pulling latest changes
        """

        depth = kwargs.get('depth', 0)
        rebase = kwargs.get('rebase', False)
        fork_remote = kwargs.get('fork_remote', None)

        ProjectRepo.herd_branch(self, url, branch, depth=depth, rebase=rebase, fork_remote=fork_remote)
        self.submodule_update_recursive(depth)