Skip to content

Commit

Permalink
[FIX] Only add files which have been formatted.
Browse files Browse the repository at this point in the history
  • Loading branch information
janstrohbeck committed Aug 19, 2019
1 parent edce6dd commit 729352d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion git-cmake-format.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ def formatFiles(projects):
sys.stdout.flush()
callFormatter(formatter_name, project, files)
print('done')
addFiles(files)
if not project["abort_commit"] and args.hook:
addFiles(files)
return filesToFormat

def lintFiles(projects):
Expand Down

0 comments on commit 729352d

Please sign in to comment.