mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-08 06:25:51 +01:00
(refs #313)Add files which have FileMode.EXECUTABLE_FILE mode into zip file
This commit is contained in:
@@ -208,7 +208,7 @@ trait RepositoryViewerControllerBase extends ControllerBase {
|
|||||||
while(walk.next){
|
while(walk.next){
|
||||||
val name = walk.getPathString
|
val name = walk.getPathString
|
||||||
val mode = walk.getFileMode(0)
|
val mode = walk.getFileMode(0)
|
||||||
if(mode == FileMode.REGULAR_FILE){
|
if(mode == FileMode.REGULAR_FILE || mode == FileMode.EXECUTABLE_FILE){
|
||||||
walk.getObjectId(objectId, 0)
|
walk.getObjectId(objectId, 0)
|
||||||
val entry = new ZipEntry(name)
|
val entry = new ZipEntry(name)
|
||||||
val loader = reader.open(objectId)
|
val loader = reader.open(objectId)
|
||||||
|
|||||||
Reference in New Issue
Block a user