mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-24 19:02:42 +02:00
ci: Do not print git log
for empty COMMIT_RANGE
This commit is contained in:
parent
77a2f5d30c
commit
095f07744c
@ -8,8 +8,8 @@ export LC_ALL=C
|
|||||||
|
|
||||||
GIT_HEAD=$(git rev-parse HEAD)
|
GIT_HEAD=$(git rev-parse HEAD)
|
||||||
if [ -n "$CIRRUS_PR" ]; then
|
if [ -n "$CIRRUS_PR" ]; then
|
||||||
COMMIT_RANGE="$CIRRUS_BASE_SHA..$GIT_HEAD"
|
COMMIT_RANGE="${CIRRUS_BASE_SHA}..$GIT_HEAD"
|
||||||
test/lint/commit-script-check.sh $COMMIT_RANGE
|
test/lint/commit-script-check.sh "$COMMIT_RANGE"
|
||||||
fi
|
fi
|
||||||
export COMMIT_RANGE
|
export COMMIT_RANGE
|
||||||
|
|
||||||
@ -34,5 +34,7 @@ if [ "$CIRRUS_REPO_FULL_NAME" = "bitcoin/bitcoin" ] && [ "$CIRRUS_PR" = "" ] ; t
|
|||||||
./contrib/verify-commits/verify-commits.py;
|
./contrib/verify-commits/verify-commits.py;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo
|
if [ -n "$COMMIT_RANGE" ]; then
|
||||||
git log --no-merges --oneline $COMMIT_RANGE
|
echo
|
||||||
|
git log --no-merges --oneline "$COMMIT_RANGE"
|
||||||
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user