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

no notification if everything is allright

This commit is contained in:
s2
2018-05-18 17:07:13 +02:00
parent 0a2e639e1c
commit 7a6c320ddf
5 changed files with 13 additions and 4 deletions

View File

@@ -142,7 +142,6 @@ ipcMain.on('unlock', (event, file) => {
notification = {
file: file,
event: 'unlock',
message: stdout,
type: 'info'
};
}
@@ -152,7 +151,7 @@ ipcMain.on('unlock', (event, file) => {
});
ipcMain.on('lock', (event, file) => {
exec('git lfs lock "' + file + '"', {
exec('git lfs lock --json "' + file + '"', {
cwd: repoDir
},
(error, stdout, stderr) => {
@@ -165,7 +164,7 @@ ipcMain.on('lock', (event, file) => {
notification = {
file: file,
event: 'lock',
message: stdout,
data: JSON.parse(stdout),
type: 'info'
};
}