Skip to content

Commit

Permalink
fix(ingest): avoid git dependency in dbt (datahub-project#9447)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored and maiarareinaldo committed Feb 27, 2024
1 parent d13b779 commit ce86642
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 ce86642

Please sign in to comment.