mirror of
https://github.com/S2-/gitlit
synced 2025-08-03 12:50:04 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
c7dab12990 | |||
9b0377efc9 |
11
app/main.js
11
app/main.js
@@ -12,7 +12,7 @@ const args = require('minimist')(process.defaultApp ? process.argv.slice(3) : pr
|
|||||||
const repoDir = path.resolve(path.normalize(args._.join(' ')));
|
const repoDir = path.resolve(path.normalize(args._.join(' ')));
|
||||||
|
|
||||||
function getLfsFileList(dir, cb) {
|
function getLfsFileList(dir, cb) {
|
||||||
exec('git lfs ls-files', {
|
exec('git ls-files | git check-attr --stdin lockable', {
|
||||||
maxBuffer: 1024 * 1024,
|
maxBuffer: 1024 * 1024,
|
||||||
cwd: dir
|
cwd: dir
|
||||||
},
|
},
|
||||||
@@ -26,10 +26,11 @@ function getLfsFileList(dir, cb) {
|
|||||||
if (stdout) {
|
if (stdout) {
|
||||||
let files = stdout.split('\n');
|
let files = stdout.split('\n');
|
||||||
files.forEach((file) => {
|
files.forEach((file) => {
|
||||||
let pos = file.search(/ \* | \- /);
|
let pos = file.split(': lockable: ');
|
||||||
if (pos) {
|
if (pos && pos.length === 2) {
|
||||||
file = file.substring(pos + 3);
|
file = pos[0];
|
||||||
if (file) {
|
status = pos[1];
|
||||||
|
if (file && status === 'set') {
|
||||||
parsedFiles.push(file.trim());
|
parsedFiles.push(file.trim());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
app/package-lock.json
generated
2
app/package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gitlit-app",
|
"name": "gitlit-app",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "gitlit-app",
|
"name": "gitlit-app",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Reference in New Issue
Block a user