diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-12-20 20:02:25 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-12-20 20:02:25 -0500 |
commit | 7b4692dec8b561fc2b1a36656dc6e5cd87ab5804 (patch) | |
tree | 1b785e148918b55607475e51e2c9d448aa351370 /gitsrht/blueprints/repo.py | |
parent | 8b3fbaa01b3caf4dda529e732de3a4dec5d48d29 (diff) |
404 when trying to browse submodules
Diffstat (limited to 'gitsrht/blueprints/repo.py')
-rw-r--r-- | gitsrht/blueprints/repo.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gitsrht/blueprints/repo.py b/gitsrht/blueprints/repo.py index f05c88b..2c1ae44 100644 --- a/gitsrht/blueprints/repo.py +++ b/gitsrht/blueprints/repo.py @@ -191,6 +191,8 @@ def tree(owner, repo, ref, path): editorconfig=editorconfig) tree = git_repo.get(entry.id) + if not tree: + abort(404) tree = annotate_tree(git_repo, tree, commit) tree = sorted(tree, key=lambda e: e.name) |