From 377530ec21daaa4df359b3aa620fd1be0e821d7d Mon Sep 17 00:00:00 2001
From: semlanik <semlanik@gmail.com>
Date: Thu, 30 Oct 2014 22:13:52 +0300
Subject: [PATCH] Fix Issue 589

---
 routers/repo/repo.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index 2116e2c9f..c8ebf2362 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)