Fix creation of corrupt zip files

Fixes #103
This commit is contained in:
rubenwardy 2018-07-08 17:09:46 +01:00
parent 13837ce88b
commit 8d2144895e
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ def makeVCSRelease(id, branch):
filename = randomString(10) + ".zip"
destPath = os.path.join("app/public/uploads", filename)
with open(destPath, "wb") as fp:
repo.archive(fp)
repo.archive(fp, format="zip")
release.url = "/uploads/" + filename
print(release.url)