mirror of
https://github.com/nextcloud/android.git
synced 2024-11-25 22:55:46 +03:00
Merge pull request #9093 from nextcloud/more-hooks-improvements
pre-push hook: Exclude merges from signoff check
This commit is contained in:
commit
f55c7c8785
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ while read local_ref local_sha remote_ref remote_sha; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for commits without sign-off
|
# Check for commits without sign-off
|
||||||
commit=$(git rev-list --grep 'Signed-off-by' --invert-grep "$range")
|
commit=$(git rev-list --no-merges --grep 'Signed-off-by' --invert-grep "$range")
|
||||||
if [ -n "$commit" ]; then
|
if [ -n "$commit" ]; then
|
||||||
echo >&2 "Found commits without sign-off in $local_ref. Aborting push. Offending commits:"
|
echo >&2 "Found commits without sign-off in $local_ref. Aborting push. Offending commits:"
|
||||||
echo >&2 "$commit"
|
echo >&2 "$commit"
|
||||||
|
|
Loading…
Reference in a new issue