mirror of
				https://github.com/msgpack/msgpack-c.git
				synced 2025-11-04 04:09:59 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			321 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			321 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#! /bin/sh
 | 
						|
 | 
						|
if [ -z "$(git branch)" ]; then
 | 
						|
    exit 0
 | 
						|
fi
 | 
						|
 | 
						|
if [ -n "${GIT_DIR}" ]; then
 | 
						|
    hooksdir="./${GIT_DIR}/hooks/"
 | 
						|
else
 | 
						|
    hooksdir="./"
 | 
						|
fi
 | 
						|
 | 
						|
. "${hooksdir}common.sh"
 | 
						|
 | 
						|
isOnMasterBranch
 | 
						|
if [ $? -eq 0 ]; then
 | 
						|
    echo "can't commit on master branch."
 | 
						|
    echo "please commit on topic branch."
 | 
						|
    exit 1
 | 
						|
fi
 | 
						|
 | 
						|
exit 0
 |