mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-18 19:10:11 +00:00
Require merge commits merge branches on top of other merge commits
Specifically, require that the left branch (first restult of git show -s --format=format:%P) is a signed merge commit, instead of allowing either. This is fine for now, but might need to be relaxed in the future. Also fixes an out-of-file-descriptors issue by holding too many open FDs writing to /dev/null
This commit is contained in:
parent
77bd8c4cab
commit
3e900acafa
@ -28,9 +28,10 @@ IS_SIGNED () {
|
|||||||
local PARENTS
|
local PARENTS
|
||||||
PARENTS=$(git show -s --format=format:%P $1)
|
PARENTS=$(git show -s --format=format:%P $1)
|
||||||
for PARENT in $PARENTS; do
|
for PARENT in $PARENTS; do
|
||||||
if IS_SIGNED $PARENT > /dev/null; then
|
if IS_SIGNED $PARENT; then
|
||||||
return 0;
|
return 0;
|
||||||
fi
|
fi
|
||||||
|
break
|
||||||
done
|
done
|
||||||
if ! "$HAVE_FAILED"; then
|
if ! "$HAVE_FAILED"; then
|
||||||
echo "No parent of $1 was signed with a trusted key!" > /dev/stderr
|
echo "No parent of $1 was signed with a trusted key!" > /dev/stderr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user