Browse Source

Update repo.go

Release download file name doesn't include tag number #2339
Download: Changed to use refName instead of commit.ID for downloaded file name
for-closed-social
ddelpero 8 years ago
parent
commit
7655337a1f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/repo.go

+ 1
- 1
routers/repo/repo.go View File

@ -330,5 +330,5 @@ func Download(ctx *middleware.Context) {
}
}
ctx.ServeFile(archivePath, ctx.Repo.Repository.Name+"-"+base.ShortSha(commit.ID.String())+ext)
ctx.ServeFile(archivePath, ctx.Repo.Repository.Name+"-"+refName+ext)
}

Loading…
Cancel
Save