MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / _get_result

Method _get_result

pre_commit/store.py:142–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

140 repo = self.db_repo_name(repo, deps)
141
142 def _get_result() -> str | None:
143 # Check if we already exist
144 with self.connect() as db:
145 result = db.execute(
146 'SELECT path FROM repos WHERE repo = ? AND ref = ?',
147 (repo, ref),
148 ).fetchone()
149 return result[0] if result else None
150
151 result = _get_result()
152 if result:

Callers

nothing calls this directly

Calls 1

connectMethod · 0.95

Tested by

no test coverage detected