fix prepush hook
parent
ae799f72c4
commit
fc0be8be97
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue