mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	* Add API for manipulating Git hooks Signed-off-by: Segev Finer <segev@codeocean.com> * Replace code.gitea.io/sdk with PR branch temporarily for CI * Switch back to code.gitea.io/sdk@master * Return 403 instead of 404 on no permission to edit hooks in API * Add tests for Git hooks API * Update models/repo_list_test.go Co-Authored-By: segevfiner <segev208@gmail.com> * Update models/repo_list_test.go Co-Authored-By: segevfiner <segev208@gmail.com> * empty line
		
			
				
	
	
		
			15 lines
		
	
	
		
			424 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			424 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
#
 | 
						|
# An example hook script to verify what is about to be committed
 | 
						|
# by applypatch from an e-mail message.
 | 
						|
#
 | 
						|
# The hook should exit with non-zero status after issuing an
 | 
						|
# appropriate message if it wants to stop the commit.
 | 
						|
#
 | 
						|
# To enable this hook, rename this file to "pre-applypatch".
 | 
						|
 | 
						|
. git-sh-setup
 | 
						|
precommit="$(git rev-parse --git-path hooks/pre-commit)"
 | 
						|
test -x "$precommit" && exec "$precommit" ${1+"$@"}
 | 
						|
:
 |