Find the official Apache Solr remote (matching 'apache' and 'solr' in URL).
(self)
| 159 | return True |
| 160 | |
| 161 | def _find_apache_remote(self) -> Optional[str]: |
| 162 | """Find the official Apache Solr remote (matching 'apache' and 'solr' in URL).""" |
| 163 | result = self.run_git(["remote", "-v"], check=False) |
| 164 | if result.returncode != 0: |
| 165 | return None |
| 166 | |
| 167 | for parts in (line.split() for line in result.stdout.strip().split("\n") if line): |
| 168 | if len(parts) >= 2 and "apache" in parts[1].lower() and "solr" in parts[1].lower(): |
| 169 | return parts[0] |
| 170 | return None |
| 171 | |
| 172 | def _get_remote_branches(self, remote: str) -> set: |
| 173 | """Get list of available branches from remote.""" |
no test coverage detected