How can I prevent foxtrot merges in my ‘master’ branch?
The following pre-receive hook will block those: #/bin/bash # Copyright (c) 2016 G. Sylvie Davies. http://bit-booster.com/ # Copyright (c) 2016 torek. http://stackoverflow.com/users/1256452/torek # License: MIT license. https://opensource.org/licenses/MIT while read oldrev newrev refname do if [ “$refname” = “refs/heads/master” ]; then MATCH=`git log –first-parent –pretty=’%H %P’ $oldrev..$newrev | grep $oldrev | awk ‘{ print \$2 }’` …