Merge "project: Relax the submodule name pattern to accept dots"

This commit is contained in:
Sebastian Schuberth 2019-03-14 07:14:28 +00:00 committed by Gerrit Code Review
commit 834d308a2b

View File

@ -1807,8 +1807,8 @@ class Project(object):
submodules.append((sub_rev, sub_path, sub_url))
return submodules
re_path = re.compile(r'^submodule\.([^.]+)\.path=(.*)$')
re_url = re.compile(r'^submodule\.([^.]+)\.url=(.*)$')
re_path = re.compile(r'^submodule\.(.+)\.path=(.*)$')
re_url = re.compile(r'^submodule\.(.+)\.url=(.*)$')
def parse_gitmodules(gitdir, rev):
cmd = ['cat-file', 'blob', '%s:.gitmodules' % rev]