Skip to content

Commit 2d761d2

Browse files
author
taeul
committed
Merge pull request #489 from AaronDMarasco/master
reject-commits: Remove random indentation tabs
2 parents b2751cf + cd1bc1a commit 2d761d2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

pre-receive-hooks/reject-commits.sh

+12-12
Original file line numberDiff line numberDiff 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
4444
done

0 commit comments

Comments
 (0)