Skip to content

Commit

Permalink
fix(git-submodules): correctly parse git submodule name (#7646)
Browse files Browse the repository at this point in the history
This is part 3 of #7498, and includes:

- Correctly parse git submodule name
  • Loading branch information
JamieMagee committed Nov 4, 2020
1 parent 053ac57 commit a13e57f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/manager/git-submodules/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ export default async function extractPackageFile(
try {
const [currentValue] = (await git.subModule(['status', path]))
.trim()
.split(/[+\s]/);
.replace(/^[-+]/, '')
.split(/\s/);
const subModuleUrl = await getUrl(git, gitModulesPath, name);
const submoduleBranch = await getBranch(
gitModulesPath,
Expand Down

0 comments on commit a13e57f

Please sign in to comment.