Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c1a2bea

Browse files
committed
👕 Don't shadow remote
1 parent 2222e15 commit c1a2bea

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/git-shell-out-strategy.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -509,16 +509,16 @@ export default class GitShellOutStrategy {
509509
return this.exec(args, {writeOperation: true});
510510
}
511511

512-
fetch(remote, branchName) {
513-
return this.exec(['fetch', remote, branchName], {useGitPromptServer: true, writeOperation: true});
512+
fetch(remoteName, branchName) {
513+
return this.exec(['fetch', remoteName, branchName], {useGitPromptServer: true, writeOperation: true});
514514
}
515515

516-
pull(remote, branchName) {
517-
return this.gpgExec(['pull', remote, branchName], {useGitPromptServer: true, writeOperation: true});
516+
pull(remoteName, branchName) {
517+
return this.gpgExec(['pull', remoteName, branchName], {useGitPromptServer: true, writeOperation: true});
518518
}
519519

520-
push(remote, branchName, options = {}) {
521-
const args = ['push', remote || 'origin', branchName];
520+
push(remoteName, branchName, options = {}) {
521+
const args = ['push', remoteName || 'origin', branchName];
522522
if (options.setUpstream) { args.push('--set-upstream'); }
523523
if (options.force) { args.push('--force'); }
524524
return this.exec(args, {useGitPromptServer: true, writeOperation: true});

0 commit comments

Comments
 (0)