Selaa lähdekoodia

Fix Issue 589

semlanik 10 vuotta sitten
vanhempi
commit
377530ec21
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      routers/repo/repo.go

+ 1 - 1
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)