Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failes for submodule #297

Closed
white-gecko opened this issue Mar 22, 2022 · 0 comments · Fixed by #298
Closed

Failes for submodule #297

white-gecko opened this issue Mar 22, 2022 · 0 comments · Fixed by #298

Comments

@white-gecko
Copy link
Member

Currently the quit store doesn't work on repos with submodules.

It produces a stacktrace like:

2022-03-22 16:43:44,694 - quit.modules.endpoint - ERROR - 'NoneType' object has no attribute 'type'
Traceback (most recent call last):
  File "…/QuitStore/quit/web/modules/endpoint.py", line 155, in sparql
    graph, commitid = quit.instance(branch_or_ref)
  File "…/QuitStore/quit/core.py", line 196, in instance
    for blob in self.getFilesForCommit(commit):
  File "…/QuitStore/quit/core.py", line 400, in getFilesForCommit
    for entity in commit.node().entries(recursive=True):
  File "…/QuitStore/quit/git.py", line 608, in entries
    node = Node(
  File "…/QuitStore/quit/git.py", line 564, in __init__
    if self.obj.type == pygit2.GIT_OBJ_TREE:
AttributeError: 'NoneType' object has no attribute 'type'

Maybe fix by doing #235

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant