1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-04 13:10:09 +02:00

update dependencies

This commit is contained in:
s2
2018-10-09 09:51:34 +02:00
parent 4fcc873901
commit da4083f574
1112 changed files with 23205 additions and 21697 deletions

View File

@@ -104,7 +104,7 @@ class Filesystem {
return link
}
listFiles () {
listFiles (options) {
const files = []
const fillFilesFromHeader = function (p, json) {
if (!json.files) {
@@ -114,7 +114,8 @@ class Filesystem {
const result = []
for (const f in json.files) {
const fullPath = path.join(p, f)
files.push(fullPath)
const packState = json.files[f].unpacked === true ? 'unpack' : 'pack '
files.push((options && options.isPack) ? `${packState} : ${fullPath}` : fullPath)
result.push(fillFilesFromHeader(fullPath, json.files[f]))
}
return result