Skip to content

Commit

Permalink
Build update
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgef committed Apr 28, 2024
1 parent b88d5c5 commit cd03b67
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/renderer/services/providers/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,17 @@ class GithubProvider {

await new Promise((resolve) => {
setTimeout(() => {
runCommand(bufferDir, "git config --global core.safecrlf false");
runCommand(bufferDir, "git add --all");
runCommand(bufferDir, `git commit -m "${commitMessage}"`);
const { res: e, error: commitError } = runCommand(bufferDir, "git push --force");

if (commitError) {
modal.alert(e.message, null, null, null, `commit_error: ${repositoryUrl}`);
console.error(e);
}
[
runCommand(bufferDir, "git config --global core.safecrlf false"),
runCommand(bufferDir, "git add --all"),
runCommand(bufferDir, `git commit -m "${commitMessage}"`),
runCommand(bufferDir, "git push --force")
].forEach(({ res: e, error: commitError }) => {
if (commitError) {
modal.alert(e.message, null, null, null, `commit_error: ${repositoryUrl}`);
console.error(e);
}
});
resolve(null);
}, 1000);
});
Expand Down

0 comments on commit cd03b67

Please sign in to comment.