diff options
author | 无闻 <joe2010xtmf@163.com> | 2014-10-30 22:31:47 -0400 |
---|---|---|
committer | 无闻 <joe2010xtmf@163.com> | 2014-10-30 22:31:47 -0400 |
commit | 87be4623cf8c5f7ad580c6467750d424d7132f77 (patch) | |
tree | 45aec6699ac78ef1a1c1e6edb0bcbb68f2c808d7 | |
parent | c7f56d7483f403f66a3bf849f6dbe5e460719248 (diff) | |
parent | 377530ec21daaa4df359b3aa620fd1be0e821d7d (diff) |
Merge pull request #591 from semlanik/semlanik/589
Fix Issue 589
-rw-r--r-- | routers/repo/repo.go | 2 |
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) |