Skip to content

Commit e965b37

Browse files
committed
git clone depth
1 parent 8f159bf commit e965b37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/main.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ async function cloneOrUpdateRepository(repoUrl, destinationPath) {
9999

100100
if (!fs.existsSync(destinationPath)) {
101101
// Clona el repositorio si el directorio no existe
102-
await git.clone(repoUrl, destinationPath);
102+
await git.clone(repoUrl, destinationPath, ['--depth', '1']);
103103
console.log(`Repositorio clonado en: ${destinationPath}`);
104104
} else {
105105
// Realiza un pull si el directorio ya existe
@@ -631,7 +631,7 @@ const insertROM = (
631631
});
632632
},
633633
);
634-
dbLibrary.close();
634+
// dbLibrary.close();
635635
});
636636
};
637637

0 commit comments

Comments
 (0)