fix prepush hook

pull/5/head
Adam Veldhousen 2019-12-11 19:01:57 -06:00
parent ae799f72c4
commit fc0be8be97
Signed by: adam
GPG Key ID: 6DB29003C6DD1E4B
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
# If the following text is found anywhere in the source for HEAD, we will prevent pushing # If the following text is found anywhere in the source for HEAD, we will prevent pushing
dont_push_flag="DONT PUSH ME" dont_push_flag="DONT PUSH ME"
flag_found=`git grep --color "$dont_push_flag" HEAD` flag_found=`git grep --color "$dont_push_flag" HEAD | grep -v 'pre-push'`
if [ -n "$flag_found" ] if [ -n "$flag_found" ]
then then
# Display which commit the first occurence of the flag was found and exit failure # Display which commit the first occurence of the flag was found and exit failure