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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-watchtower",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "Terminal-based Git branch monitor with activity sparklines and optional dev server with live reload",
5
5
  "main": "bin/git-watchtower.js",
6
6
  "bin": {