Skip to content

Commit

Permalink
Add git pull autostash
Browse files Browse the repository at this point in the history
  • Loading branch information
ggodlewski committed May 6, 2024
1 parent 718f0d8 commit 8c0c79f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git/GitScanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class GitScanner {
remoteBranch = 'master';
}

await this.exec(`git pull --rebase origin ${remoteBranch}:master`, {
await this.exec(`git pull --autostash --rebase origin ${remoteBranch}:master`, {
env: {
GIT_SSH_COMMAND: sshParams?.privateKeyFile ? `ssh -i ${sanitize(sshParams.privateKeyFile)} -o StrictHostKeyChecking=no -o IdentitiesOnly=yes` : undefined
}
Expand Down

0 comments on commit 8c0c79f

Please sign in to comment.