mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Merge "project: Relax the submodule name pattern to accept dots"
This commit is contained in:
commit
834d308a2b
@ -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