We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfac255 commit 1b15ea1Copy full SHA for 1b15ea1
1 file changed
airflow_dbt_python/hooks/fs/git.py
@@ -93,7 +93,12 @@ def _upload(
93
if self.upload_filter(f) is False:
94
continue
95
96
+ # Starting from dulwich version 1.0.0, stage is an attribute of WorkTree class
97
+ try:
98
repo.stage(str(f.relative_to(source)))
99
+ except AttributeError:
100
+ repo.get_worktree().stage(str(f.relative_to(source)))
101
+
102
103
ts = dt.datetime.now(dt.timezone.utc)
104
repo.do_commit(
0 commit comments