depot/third_party/nixpkgs/pkgs/development/python-modules/ua-parser/dont-fetch-submodule.patch
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

17 lines
588 B
Diff

diff --git a/setup.py b/setup.py
index a976eee..6919795 100644
--- a/setup.py
+++ b/setup.py
@@ -64,12 +64,6 @@ class build_regexes(Command):
def run(self):
work_path = self.work_path
- if not os.path.exists(os.path.join(work_path, ".git")):
- return
-
- log.info("initializing git submodules")
- check_output(["git", "submodule", "init"], cwd=work_path)
- check_output(["git", "submodule", "update"], cwd=work_path)
yaml_src = os.path.join(work_path, "uap-core", "regexes.yaml")
if not os.path.exists(yaml_src):