mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			309 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			309 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
# script prevents pushing to develop and master by mistake
 | 
						|
 | 
						|
branch="$(git rev-parse --abbrev-ref HEAD)"
 | 
						|
 | 
						|
if [ "$branch" = "master" ]; then
 | 
						|
  echo "You can't push directly to master branch"
 | 
						|
  exit 1
 | 
						|
elif [ "$branch" = "develop" ]; then
 | 
						|
  echo "You can't push directly to develop branch"
 | 
						|
  exit 1
 | 
						|
fi
 |