1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 17:14:27 +00:00

Merge pull request #591 from semlanik/semlanik/589

Fix Issue 589
This commit is contained in:
无闻 2014-10-30 22:31:47 -04:00
commit 87be4623cf

View File

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