Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions airflow_dbt_python/hooks/fs/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,12 @@ def _upload(
if self.upload_filter(f) is False:
continue

# Starting from dulwich version 1.0.0, stage is an attribute of WorkTree class
try:
repo.stage(str(f.relative_to(source)))
except AttributeError:
repo.get_worktree().stage(str(f.relative_to(source)))


ts = dt.datetime.now(dt.timezone.utc)
repo.do_commit(
Expand Down
Loading