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 +1 -1
- package/src/git/commands.js +3 -0
package/package.json
CHANGED
package/src/git/commands.js
CHANGED
|
@@ -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 });
|