File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,17 +28,17 @@ while read -r oldrev newrev refname; do
2828 # Calculate range for new branch/updated branch
2929 [ " $oldrev " = " $zero_commit " ] && range=" $newrev " || range=" $oldrev ..$newrev "
3030
31- # Iterate over all new hashes and try to match "rejected hashes"
32- # Return "success" if there are no matches
33- match=$( git rev-list " $range " --not --all \
34- | fgrep --max-count=1 --file=$rejected_commits \
35- ) || continue
31+ # Iterate over all new hashes and try to match "rejected hashes"
32+ # Return "success" if there are no matches
33+ match=$( git rev-list " $range " --not --all \
34+ | fgrep --max-count=1 --file=$rejected_commits \
35+ ) || continue
3636
37- echo " ERROR:"
38- echo " ERROR: Your push was rejected because it contained the commit"
39- echo " ERROR: '$match ' in '${refname# refs/ heads/ } '."
40- echo " ERROR:"
41- echo " ERROR: Please contact your GitHub Enterprise administrator."
42- echo " ERROR"
43- exit 1
37+ echo " ERROR:"
38+ echo " ERROR: Your push was rejected because it contained the commit"
39+ echo " ERROR: '$match ' in '${refname# refs/ heads/ } '."
40+ echo " ERROR:"
41+ echo " ERROR: Please contact your GitHub Enterprise administrator."
42+ echo " ERROR"
43+ exit 1
4444done
You can’t perform that action at this time.
0 commit comments