mirror of
https://gerrit.googlesource.com/git-repo
synced 2025-01-20 16:14:25 +00:00
project: Relax the submodule name pattern to accept dots
Even if dots are used as separators for Git config keys, they are not forbidden as part of submodule names. This fixes the issue of submodules with a name like e.g. "long.js" to be skipped from checkout. Change-Id: I77da07925ad207fa3d043067dfbbcb4a1ebdac4d
This commit is contained in:
parent
e7379dc5f7
commit
41a26837d0
@ -1807,8 +1807,8 @@ class Project(object):
|
|||||||
submodules.append((sub_rev, sub_path, sub_url))
|
submodules.append((sub_rev, sub_path, sub_url))
|
||||||
return submodules
|
return submodules
|
||||||
|
|
||||||
re_path = re.compile(r'^submodule\.([^.]+)\.path=(.*)$')
|
re_path = re.compile(r'^submodule\.(.+)\.path=(.*)$')
|
||||||
re_url = re.compile(r'^submodule\.([^.]+)\.url=(.*)$')
|
re_url = re.compile(r'^submodule\.(.+)\.url=(.*)$')
|
||||||
|
|
||||||
def parse_gitmodules(gitdir, rev):
|
def parse_gitmodules(gitdir, rev):
|
||||||
cmd = ['cat-file', 'blob', '%s:.gitmodules' % rev]
|
cmd = ['cat-file', 'blob', '%s:.gitmodules' % rev]
|
||||||
|
Loading…
Reference in New Issue
Block a user