@kody-ade/kody-engine-lite 0.1.88 → 0.1.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +6 -1
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -495,7 +495,12 @@ function commitAll(message, cwd) {
|
|
|
495
495
|
return { success: true, hash, message };
|
|
496
496
|
}
|
|
497
497
|
function pushBranch(cwd) {
|
|
498
|
-
|
|
498
|
+
try {
|
|
499
|
+
git(["push", "-u", "origin", "HEAD"], { cwd, timeout: 12e4 });
|
|
500
|
+
} catch {
|
|
501
|
+
logger.info(" Push rejected (non-fast-forward), retrying with --force-with-lease");
|
|
502
|
+
git(["push", "--force-with-lease", "-u", "origin", "HEAD"], { cwd, timeout: 12e4 });
|
|
503
|
+
}
|
|
499
504
|
logger.info(" Pushed to origin");
|
|
500
505
|
}
|
|
501
506
|
var BASE_BRANCHES, _hookSafeEnv;
|