Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
klaus
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
jonashaag
klaus
Commits
33ae233f
Commit
33ae233f
authored
10 years ago
by
Jonas Haag
Browse files
Options
Downloads
Patches
Plain Diff
Ignore git submodules for .tar.gz downloads
parent
7f4c30a9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
klaus/tarutils.py
+5
-1
5 additions, 1 deletion
klaus/tarutils.py
with
5 additions
and
1 deletion
klaus/tarutils.py
+
5
−
1
View file @
33ae233f
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment