From f486f08efacdbb37b85b59610f6b864e6b695937 Mon Sep 17 00:00:00 2001 From: Martin Thomson Date: Mon, 28 Aug 2017 16:09:23 +1000 Subject: Bug 1392504 - Fix mach clang-format when run outside the root, r=franziskus --- mach | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'mach') diff --git a/mach b/mach index 2620d134e..715f1a9e3 100755 --- a/mach +++ b/mach @@ -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: -- cgit v1.2.1