mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-13 15:36:25 +00:00
fix(git): git pull immediately after automerge (#10390)
Call git.pull() before performing a fetch, to handle the case where the default branch has been updated. Closes #10372
This commit is contained in:
parent
0e0f08b599
commit
e1c7845dee
1 changed files with 1 additions and 0 deletions
|
@ -266,6 +266,7 @@ export async function syncGit(): Promise<void> {
|
|||
try {
|
||||
await git.raw(['remote', 'set-url', 'origin', config.url]);
|
||||
await resetToBranch(await getDefaultBranch(git));
|
||||
await git.pull();
|
||||
// istanbul ignore if
|
||||
if (process.env.NODE_ENV !== 'test') {
|
||||
await git.raw(['config', '--unset-all', 'remote.origin.fetch']);
|
||||
|
|
Loading…
Reference in a new issue