git-watchtower 1.13.0 → 1.13.1
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/bin/git-watchtower.js +8 -0
- package/package.json +1 -1
package/bin/git-watchtower.js
CHANGED
|
@@ -3352,6 +3352,14 @@ function restartProcess() {
|
|
|
3352
3352
|
}
|
|
3353
3353
|
stopWebDashboard();
|
|
3354
3354
|
|
|
3355
|
+
// Release the per-repo monitor lock before spawning the replacement, so the
|
|
3356
|
+
// child can acquire it. The parent stays alive waiting on child.on('close'),
|
|
3357
|
+
// so without this the child sees the parent as an active owner and refuses.
|
|
3358
|
+
if (monitorLockFile) {
|
|
3359
|
+
try { monitorLock.release(monitorLockFile); } catch (_) { /* ignore */ }
|
|
3360
|
+
monitorLockFile = null;
|
|
3361
|
+
}
|
|
3362
|
+
|
|
3355
3363
|
console.log('\n♻ Restarting git-watchtower...\n');
|
|
3356
3364
|
|
|
3357
3365
|
const { spawn: spawnChild } = require('child_process');
|
package/package.json
CHANGED