1
0
mirror of https://github.com/desktop/desktop synced 2024-07-05 00:58:57 +00:00

Update app/src/lib/git/submodule.ts

Co-authored-by: Sergio Padrino <sergio.padrino@gmail.com>
This commit is contained in:
Markus Olsson 2022-03-01 13:00:53 +00:00 committed by GitHub
parent 3ffc6a518b
commit 5748a98e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ export async function listSubmodules(
// about it if you want to learn more:
//
// https://git-scm.com/docs/git-describe
const statusRe = /^.([a-f0-9]{40}) (.+?) \((.+?)\)$/gm
const statusRe = /^.([^ ]+) (.+) \((.+?)\)$/gm
for (const [, sha, path, describe] of stdout.matchAll(statusRe)) {
submodules.push(new SubmoduleEntry(sha, path, describe))