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:
parent
3ffc6a518b
commit
5748a98e13
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user