summaryrefslogtreecommitdiffstats
path: root/routers/repo/repo.go
diff options
context:
space:
mode:
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)
}