mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-11 18:14:15 +01:00
Fix Issue 589
This commit is contained in:
parent
c7f56d7483
commit
377530ec21
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ func Download(ctx *middleware.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
archivePath = path.Join(archivePath, ctx.Repo.CommitId+ext)
|
archivePath = path.Join(archivePath, base.ShortSha(commit.Id.String())+ext)
|
||||||
if !com.IsFile(archivePath) {
|
if !com.IsFile(archivePath) {
|
||||||
if err := commit.CreateArchive(archivePath, git.ZIP); err != nil {
|
if err := commit.CreateArchive(archivePath, git.ZIP); err != nil {
|
||||||
ctx.Handle(500, "Download -> CreateArchive "+archivePath, err)
|
ctx.Handle(500, "Download -> CreateArchive "+archivePath, err)
|
||||||
|
|
Loading…
Reference in a new issue