Skip to content

Commit

Permalink
Bug 1392504 - Fix mach clang-format when run outside the root, r=fran…
Browse files Browse the repository at this point in the history
…ziskus

--HG--
extra : source : 95e53784497dff52f5b5b8818031cafbe00cca2f
  • Loading branch information
martinthomson committed Aug 28, 2017
1 parent 59e3ecf commit 077007d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mach
Expand Up @@ -27,11 +27,10 @@ class cfAction(argparse.Action):
self.setDockerCommand()

if values:
files = [os.path.abspath(x) for x in values]
files = [os.path.relpath(os.path.abspath(x), start=cwd) for x in values]
else:
files = self.modifiedFiles()
files = [os.path.join('/home/worker/nss', os.path.relpath(x, start=cwd))
for x in files]
files = [os.path.join('/home/worker/nss', x) for x in files]

# First check if we can run docker.
try:
Expand Down

0 comments on commit 077007d

Please sign in to comment.