Skip to content

Tartufo no longer able to scan repositories with GIT submodules #529

@adifelice-godaddy

Description

@adifelice-godaddy

🐛 Bug Report

The method Repository.lookup_submodule from pygit2 was removed (deprecated). But the scanner module is still calling it causing an exception.

Line:

submodule = repo.lookup_submodule(module)

To Reproduce

Scan a repository with GIT submodules.

Expected Behavior

Complete scan.

Code Example

Removing error handler exposes the actual exception:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'Repository' object has no attribute 'lookup_submodule'

Environment

Any.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions