Skip to content

[Bug] AttributeError on newer dulwich versions #174

@stecalde

Description

@stecalde

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

  • Version: 1.11.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions