Bug 1541660 - Fix clang-format subcommands that don't take a path. r=bastien

We do need some test for this stuff...

Differential Revision: https://phabricator.services.mozilla.com/D26039
This commit is contained in:
Emilio Cobos Álvarez
2019-04-04 07:14:34 +00:00
parent ac0b12fa9b
commit 650743923e

View File

@@ -2422,7 +2422,9 @@ class StaticAnalysis(MachCommandBase):
if path is None and outgoing:
repo = get_repository_object(self.topsrcdir)
path = repo.get_outgoing_files()
path = map(os.path.abspath, path)
if path:
path = map(os.path.abspath, path)
os.chdir(self.topsrcdir)