git-watchtower 1.10.10 → 1.10.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-watchtower",
3
- "version": "1.10.10",
3
+ "version": "1.10.11",
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": {
@@ -160,6 +160,9 @@ async function fetch(remoteName = 'origin', options = {}) {
160
160
  const args = ['fetch'];
161
161
  if (all) args.push('--all');
162
162
  if (prune) args.push('--prune');
163
+ // When not fetching all remotes, target the specified remote.
164
+ // (`git fetch --all <remote>` is redundant and can confuse older git versions.)
165
+ if (!all && remoteName) args.push(remoteName);
163
166
 
164
167
  try {
165
168
  await execGit(args, { cwd, timeout: FETCH_TIMEOUT });