def start(self, branch, tracking): """Start a new feature branch :param str branch: Local branch name to create :param bool tracking: Whether to create a remote branch with tracking relationship """ remote = self.remote if self.fork is None else self.fork.remote_name depth = self.depth if self.fork is None else 0 repo = ProjectRepo(self.full_path(), self.remote, self.ref) repo.start(remote, branch, depth, tracking)
def start(self, branch, tracking): """Start a new feature branch""" if not ProjectRepo.existing_git_repository(self.full_path()): print(colored(" - Directory doesn't exist", 'red')) return remote = self._remote if self.fork is None else self.fork.remote_name depth = self._depth if self.fork is None else 0 repo = ProjectRepo(self.full_path(), self._remote, self._ref) repo.start(remote, branch, depth, tracking)