From 11c1b8117cb180dce289b371d3a1507358034ff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20J=C3=BCrgens?= Date: Fri, 11 Feb 2022 19:49:05 +0100 Subject: [PATCH] fix bootstrap patch for windows --- patches/bootstrap-without-vcs.patch | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/patches/bootstrap-without-vcs.patch b/patches/bootstrap-without-vcs.patch index e1ad51d..c7b09fa 100644 --- a/patches/bootstrap-without-vcs.patch +++ b/patches/bootstrap-without-vcs.patch @@ -14,7 +14,7 @@ def update_git_tools(git, root_state_dir): --- a/python/mozversioncontrol/mozversioncontrol/__init__.py +++ b/python/mozversioncontrol/mozversioncontrol/__init__.py -@@ -672,6 +672,21 @@ class GitRepository(Repository): +@@ -672,6 +672,27 @@ class GitRepository(Repository): self._run("config", name, value) @@ -27,8 +27,14 @@ + def head_ref(self): + return "" + ++ def get_outgoing_files(self): ++ return [] ++ ++ def get_changed_files(self): ++ return [] ++ + def get_tracked_files_finder(self): -+ files = [os.path.relpath(os.path.join(dp, f), self.path) for dp, dn, fn in os.walk(self.path) for f in fn] ++ files = [os.path.relpath(os.path.join(dp, f), self.path).replace("\\","/") for dp, dn, fn in os.walk(self.path) for f in fn] + files.sort() + return FileListFinder(files) +