summaryrefslogtreecommitdiffstats
path: root/routers/repo/repo.go
diff options
context:
space:
mode:
authorddelpero <ddelpero@gmail.com>2016-01-07 14:28:38 -0600
committerddelpero <ddelpero@gmail.com>2016-01-07 14:28:38 -0600
commit7655337a1f891d1a4b77baf1d43d83d4ed1c3b4c (patch)
tree9c6299c811bdee9b86325473e40e033d6aba55d6 /routers/repo/repo.go
parente0f0f72a362e98073980d9e3c70cde8cd161614b (diff)
downloadgitea-7655337a1f891d1a4b77baf1d43d83d4ed1c3b4c.tar.gz
gitea-7655337a1f891d1a4b77baf1d43d83d4ed1c3b4c.zip
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
Diffstat (limited to 'routers/repo/repo.go')
-rw-r--r--routers/repo/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index 43672ff107..d60ec68834 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -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)
}