1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-16 08:15:47 +00:00

Fix Issue 589

This commit is contained in:
semlanik 2014-10-30 22:13:52 +03:00
parent c7f56d7483
commit 377530ec21

View File

@ -314,7 +314,7 @@ func Download(ctx *middleware.Context) {
return
}
archivePath = path.Join(archivePath, ctx.Repo.CommitId+ext)
archivePath = path.Join(archivePath, base.ShortSha(commit.Id.String())+ext)
if !com.IsFile(archivePath) {
if err := commit.CreateArchive(archivePath, git.ZIP); err != nil {
ctx.Handle(500, "Download -> CreateArchive "+archivePath, err)