mirror of
https://github.com/S2-/gitlit
synced 2025-08-02 20:30:05 +02:00
show current repo
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user