diff options
| author | Nigel Babu <nigelb@redhat.com> | 2018-09-12 19:09:58 +0530 | 
|---|---|---|
| committer | Nigel Babu <nigelb@redhat.com> | 2018-09-12 13:41:40 +0000 | 
| commit | e12e424e36cdb1ba888b35a5787b488707238f08 (patch) | |
| tree | f7c1166688777310715da2fde1f4a395a6809d4b | |
| parent | 8d027f9fc2b36087ac104c5823882a4bc2f8c888 (diff) | |
Make clang-format-job fail for real
Change-Id: I17c4e410d66749c3a661ddb695e57a197cdf1078
| -rw-r--r-- | build-gluster-org/scripts/clang-format.py | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/build-gluster-org/scripts/clang-format.py b/build-gluster-org/scripts/clang-format.py index 7621bf9..9bea1da 100644 --- a/build-gluster-org/scripts/clang-format.py +++ b/build-gluster-org/scripts/clang-format.py @@ -1,7 +1,7 @@  #!/usr/bin/env python  import subprocess -output = subprocess.check_output(["git", "clang-format", "--diff"]) +output = subprocess.check_output(["git-clang-format", "HEAD~", "--diff"])  if output not in ['no modified files to format\n', 'clang-format did not modify any files\n']:      print "Run git clang-format, then commit.\n"  | 
