mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 03:18:24 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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) | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user