aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-10-30 22:31:47 -0400
committer无闻 <joe2010xtmf@163.com>2014-10-30 22:31:47 -0400
commit87be4623cf8c5f7ad580c6467750d424d7132f77 (patch)
tree45aec6699ac78ef1a1c1e6edb0bcbb68f2c808d7
parentc7f56d7483f403f66a3bf849f6dbe5e460719248 (diff)
parent377530ec21daaa4df359b3aa620fd1be0e821d7d (diff)
Merge pull request #591 from semlanik/semlanik/589
Fix Issue 589
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index 2116e2c9..c8ebf236 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -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)