Skip to content
Snippets Groups Projects
Commit 33ae233f authored by Jonas Haag's avatar Jonas Haag
Browse files

Ignore git submodules for .tar.gz downloads

parent 7f4c30a9
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,11 @@ def tar_stream(repo, tree, mtime, format=''):
buf = BytesIO()
with tarfile.open(None, "w:%s" % format, buf) as tar:
for entry_abspath, entry in walk_tree(repo, tree):
blob = repo[entry.sha]
try:
blob = repo[entry.sha]
except KeyError:
# Entry probably refers to a submodule, which we don't yet support.
continue
data = ListBytesIO(blob.chunked)
info = tarfile.TarInfo()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment