Skip to content

Commit 394b468

Browse files
authored
Merge pull request atom#21928 from atom/fix-dependency-bump-failure
Fixes dependency bump script
2 parents 55df66b + b6b8a87 commit 394b468

File tree

1 file changed

+1
-4
lines changed
  • script/lib/update-dependency

1 file changed

+1
-4
lines changed

script/lib/update-dependency/git.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ const git = (git, repositoryRootPath) => {
1919
}
2020
return {
2121
switchToMaster: async function() {
22-
const { current } = await git.branch();
23-
if (current !== 'master') {
24-
await git.checkout('master');
25-
}
22+
await git.checkout('origin/master');
2623
},
2724
makeBranch: async function(dependency) {
2825
const newBranch = `${dependency.moduleName}-${dependency.latest}`;

0 commit comments

Comments
 (0)