MCPcopy Create free account
hub / github.com/apache/solr / run_git

Method run_git

dev-tools/scripts/validateChangelogs.py:132–140  ·  view source on GitHub ↗

Run a git command.

(self, args: List[str], check: bool = True)

Source from the content-addressed store, hash-verified

130 sys.exit(1)
131
132 def run_git(self, args: List[str], check: bool = True) -> subprocess.CompletedProcess:
133 """Run a git command."""
134 return subprocess.run(
135 ["git"] + args,
136 cwd=self.git_root,
137 capture_output=True,
138 text=True,
139 check=check
140 )
141
142 def validate_git_status(self) -> bool:
143 """Verify that git status is clean with no uncommitted changes."""

Callers 10

validate_git_statusMethod · 0.95
_find_apache_remoteMethod · 0.95
_get_remote_branchesMethod · 0.95
_git_ref_outputMethod · 0.95
discover_branchesMethod · 0.95
cleanup_temp_branchMethod · 0.95

Calls 1

runMethod · 0.65

Tested by

no test coverage detected