1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-02 20:30:05 +02:00

show current repo

This commit is contained in:
s2
2018-05-19 22:31:13 +02:00
parent b039540e9f
commit bc5a494918
4 changed files with 17 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ const args = require('minimist')(process.defaultApp ? process.argv.slice(2) : pr
}
});
const repoDir = args._.join(' ');
const repoDir = path.normalize(args._.join(' '));
function getLfsFileList(dir, cb) {
exec('git lfs ls-files', {
@@ -98,7 +98,7 @@ function createWindow() {
});
win.webContents.on('did-finish-load', () => {
console.log('getting file list and lock status in ' + repoDir + '...');
win.webContents.send('repoDir', repoDir);
getLfsFileList(repoDir, (err, files) => {
if (err) {