Przeglądaj źródła

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

Sebastian Schuberth 7 lat temu
rodzic
commit
834d308a2b
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      project.py

+ 2 - 2
project.py

@@ -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]