diff options
author | semlanik <semlanik@gmail.com> | 2014-10-30 22:13:52 +0300 |
---|---|---|
committer | semlanik <semlanik@gmail.com> | 2014-10-30 22:13:52 +0300 |
commit | 377530ec21daaa4df359b3aa620fd1be0e821d7d (patch) | |
tree | 45aec6699ac78ef1a1c1e6edb0bcbb68f2c808d7 /routers | |
parent | c7f56d7483f403f66a3bf849f6dbe5e460719248 (diff) | |
download | gitea-377530ec21daaa4df359b3aa620fd1be0e821d7d.tar.gz gitea-377530ec21daaa4df359b3aa620fd1be0e821d7d.zip |
Fix Issue 589
Diffstat (limited to 'routers')
-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 2116e2c9fc..c8ebf23626 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) |