Enable README creation and proper initial commit in auto-git
This commit is contained in:
8
main.js
8
main.js
@@ -226,10 +226,10 @@ async function initGitRepo(folder) {
|
|||||||
if (!fs.existsSync(gitDir)) {
|
if (!fs.existsSync(gitDir)) {
|
||||||
await git.init();
|
await git.init();
|
||||||
const message = `Initial commit (generated by auto-git)`;
|
const message = `Initial commit (generated by auto-git)`;
|
||||||
//const readmePath = path.join(folder, 'README.md');
|
const readmePath = path.join(folder, 'README.md');
|
||||||
//fs.writeFileSync(readmePath, `# Projekt in ${path.basename(folder)}\n`);
|
fs.writeFileSync(readmePath, `# Projekt in ${path.basename(folder)}\n`); //this is shit, it just writes something to prevent bugs when dealing with an empty folder, can be solved way better
|
||||||
//await git.add('./*');
|
await git.add('./*');
|
||||||
//await git.commit(message);
|
await git.commit(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user