Skip to content

Commit

Permalink
Fix getUpdatedDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Obi-Dann committed Apr 13, 2021
1 parent b7ea4d5 commit 351390f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/getRenovateConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ export async function getRenovateConfig({
await setUtilConfig(config)

// otherwise initRepo fails
await git.fetch(['--depth=1'])
await git.remote(['set-head', 'origin', '--auto'])
if (githubWorkspacePath) {
await git.fetch(['--depth=1'])
await git.remote(['set-head', 'origin', '--auto'])
}

config = await initRepo(config)

Expand Down
7 changes: 5 additions & 2 deletions src/getUpdatedDependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,14 @@ export function* getUpdatedDependencies(
continue
}

const [update] = baseDependency.updates // there should be a single update because we `fetchUpdates` on the base and use the rangeStrategy of 'update-lockfile'
yield {
manager: managerName,
packageFile: basePackage,
update,
update: {
newValue: headDependency.currentValue || '',
newVersion:
headDependency.lockedVersion || headDependency.currentValue
},
dependency: baseDependency
}
}
Expand Down

0 comments on commit 351390f

Please sign in to comment.