File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -28,17 +28,17 @@ while read -r oldrev newrev refname; do
28
28
# Calculate range for new branch/updated branch
29
29
[ " $oldrev " = " $zero_commit " ] && range=" $newrev " || range=" $oldrev ..$newrev "
30
30
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
36
36
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
44
44
done
You can’t perform that action at this time.
0 commit comments