mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Remove git commit domain restrictions.
(imported from commit a756428d0b95db95fb093e78a182ad8873914f54)
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							1e7d7c0b71
						
					
				
				
					commit
					795f191fb3
				
			@@ -1,9 +0,0 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
AUTHOR=$(git log -1 HEAD | grep ^Author | sed 's/Author: //')
 | 
			
		||||
if ! $(echo "$AUTHOR" | egrep '(humbughq|zulip|dropbox)\.com' >/dev/null); then
 | 
			
		||||
   echo -e "\e[0;91m  Invalid non-Zulip commit author: $AUTHOR\e[0m"
 | 
			
		||||
fi
 | 
			
		||||
COMMITTER=$(git log -1 HEAD --pretty=fuller | grep ^Commit: | sed 's/Author: //')
 | 
			
		||||
if ! $(echo "$COMMITTER" | egrep '(humbughq|zulip|dropbox)\.com' >/dev/null); then
 | 
			
		||||
   echo -e "\e[0;91m  Invalid non-Zulip committer: $COMMITTER\e[0m"
 | 
			
		||||
fi
 | 
			
		||||
@@ -6,6 +6,6 @@ if ! [ -d ".git/hooks/" ]; then
 | 
			
		||||
    exit 1
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
for hook in pre-commit post-commit; do
 | 
			
		||||
for hook in pre-commit; do
 | 
			
		||||
    ln -snf ../../tools/"$hook" .git/hooks/
 | 
			
		||||
done
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user