Skip to content
Snippets Groups Projects
Commit 98ba8ce6 authored by Mike Hommey's avatar Mike Hommey
Browse files

Bug 1906930 - Fix SrcRepository.get_files when the SrcRepository is given a...

Bug 1906930 - Fix SrcRepository.get_files when the SrcRepository is given a path other than the current directory.  a=pascalc

Original Revision: https://phabricator.services.mozilla.com/D216502

Differential Revision: https://phabricator.services.mozilla.com/D231335
parent be80ec67
No related branches found
No related tags found
No related merge requests found
......@@ -1019,9 +1019,10 @@ class SrcRepository(Repository):
"""
res = []
# move away the .git or .hg folder from path to more easily test in a hg/git repo
for root, dirs, files in os.walk("."):
for root, dirs, files in os.walk(self.path):
base = os.path.relpath(root, self.path)
for name in files:
res.append(os.path.join(root, name))
res.append(os.path.join(base, name))
return res
def get_tracked_files_finder(self, path):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment