git-watchtower 1.8.4 → 1.8.5

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.
@@ -622,10 +622,8 @@ function startServerProcess() {
622
622
  addLog(`Starting: ${SERVER_COMMAND}`, 'update');
623
623
  addServerLog(`$ ${SERVER_COMMAND}`);
624
624
 
625
- // Parse command and args
626
- const parts = SERVER_COMMAND.split(' ');
627
- const cmd = parts[0];
628
- const args = parts.slice(1);
625
+ // Parse command and args (handles quoted arguments like `npm run "my script"`)
626
+ const { command: cmd, args } = parseCommand(SERVER_COMMAND);
629
627
 
630
628
  // Use shell on Windows, direct spawn elsewhere
631
629
  const isWindows = process.platform === 'win32';
@@ -741,6 +739,9 @@ const actions = require('../src/ui/actions');
741
739
  // Diff stats parsing and stash imported from src/git/commands.js
742
740
  const { parseDiffStats, stash: gitStash, stashPop: gitStashPop } = require('../src/git/commands');
743
741
 
742
+ // Server process command parsing
743
+ const { parseCommand } = require('../src/server/process');
744
+
744
745
  // State (non-store globals)
745
746
  let previousBranchStates = new Map(); // branch name -> commit hash
746
747
  let knownBranchNames = new Set(); // Track known branches to detect NEW ones
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-watchtower",
3
- "version": "1.8.4",
3
+ "version": "1.8.5",
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": {