To have compatibility with GitHub/GitHubEnterprise
when archive downloading with sha1, even if supplied part of sha1,
GH/GHE gives a filename with full(long) sha1.

This patch make GitBucket to be compatible with GH/GHE behaviour.

You can check that difference by following url.
I upload same repo as in GitHuB to GitBucket demo site.
 
GitHub:  
https://github.com/MunGell/awesome-for-beginners/archive/fc7d067.tar.gz
GitBucket:
http://gitbucket.herokuapp.com/root/awesome-for-beginners/archive/fc7d067.tar.gz

GH returns,
awesome-for-beginners-fc7d067.tar.gz
Otherwise GitBucket returns,
awesome-for-beginners-fc7d067.tar.gz
1 parent f40bdb6 commit b218c2284e82ebcf0884ab9c03db264eca71c9fc
@Yasuhiro Takagi Yasuhiro Takagi authored on 10 Apr 2017
Showing 1 changed file
View
src/main/scala/gitbucket/core/controller/RepositoryViewerController.scala