project: Remove git hooks
These just didn't work as expected, and now that clang-format is integrated into the CMake project they are also no longer needed.
This commit is contained in:
		
							parent
							
								
									3018c9b9ea
								
							
						
					
					
						commit
						a3b1fc0b2e
					
				|  | @ -1,7 +0,0 @@ | |||
| #!/bin/bash | ||||
| if ! hash clang-format 2>/dev/null; then | ||||
| 	echo "'clang-format' must be installed in a global environment." | ||||
| 	exit 1 | ||||
| fi | ||||
| 
 | ||||
| find ./source -type f -name "*.h" -or -name "*.hpp" -or -name "*.c" -or -name "*.cpp" -exec clang-format -i '{}' \; | ||||
|  | @ -1,8 +0,0 @@ | |||
| #!/bin/bash | ||||
| 
 | ||||
| readarray -t hooks < <(find .hooks/ -maxdepth 1 -type d -not -wholename .hooks/ -print0) | ||||
| for v in "${hooks[@]}"; do | ||||
| 	hookname=`basename $v` | ||||
| 	echo "#!/bin/bash" > .git/hooks/${hookname} | ||||
| 	echo "find .hooks/${hookname}/ -type f -name '*.sh' -exec '{}' \;" >> .git/hooks/${hookname} | ||||
| done | ||||
		Loading…
	
		Reference in New Issue