Skip to content

Commit 781e813

Browse files
authored
Fix issue with git cleanup in loc auto-pr script (#6786)
1 parent 8e8482b commit 781e813

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Extension/translations_auto_pr.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@ octokit.pulls.list({ owner: repoOwner, repo: repoName }).then(({data}) => {
150150
console.log(`Restoring default git permissions`);
151151
cp.execSync('git remote remove origin');
152152
cp.execSync(`git remote add origin https://github.com/${repoOwner}/${repoName}.git`);
153-
153+
154+
console.log(`Run 'git fetch' against updated remote`);
155+
cp.execSync('git fetch');
156+
154157
console.log(`Switching back to main (git checkout main)`);
155158
cp.execSync('git checkout main');
156159

0 commit comments

Comments
 (0)