Skip to content

Commit

Permalink
fix(ingest): avoid git dependency in dbt (#9447)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored Dec 12, 2023
1 parent ffccc65 commit 66f90c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion metadata-ingestion/src/datahub/configuration/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from datahub.configuration.common import ConfigModel
from datahub.configuration.validate_field_rename import pydantic_renamed_field
from datahub.ingestion.source.git.git_import import GitClone

_GITHUB_PREFIX = "https://github.com/"
_GITLAB_PREFIX = "https://gitlab.com/"
Expand Down Expand Up @@ -151,6 +150,9 @@ def clone(
) -> pathlib.Path:
"""Clones the repo into a temporary directory and returns the path to the checkout."""

# We import this here to avoid a hard dependency on gitpython.
from datahub.ingestion.source.git.git_import import GitClone

assert self.repo_ssh_locator

git_clone = GitClone(str(tmp_path))
Expand Down

0 comments on commit 66f90c7

Please sign in to comment.