Describe the bug
When uploading the project to a remote git repository, the job fails because of an AttributeError related to the Repo class from dulwich package. Specifically, its latest version moves the stage attribute from the Repo class to the WorkTree class. A possible solution would be to replace line 96 in hooks/fs/git.py with
try:
repo.stage(str(f.relative_to(source)))
except AttributeError:
repo.get_worktree().stage(str(f.relative_to(source)))
Airflow
- Version: 3.1.7
- Provider: AWS, GitHub
Dbt
Describe the bug
When uploading the project to a remote git repository, the job fails because of an AttributeError related to the
Repoclass fromdulwichpackage. Specifically, its latest version moves thestageattribute from theRepoclass to theWorkTreeclass. A possible solution would be to replace line 96 inhooks/fs/git.pywithAirflow
Dbt