We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dff7ed5 commit b68e5a7Copy full SHA for b68e5a7
ci/lint/06_script.sh
@@ -6,7 +6,11 @@
6
7
export LC_ALL=C
8
9
-if [ -n "$CIRRUS_PR" ]; then
+if [ -n "$LOCAL_BRANCH" ]; then
10
+ # To faithfully recreate CI linting locally, specify all commits on the current
11
+ # branch.
12
+ COMMIT_RANGE="$(git merge-base HEAD master)..HEAD"
13
+elif [ -n "$CIRRUS_PR" ]; then
14
COMMIT_RANGE="HEAD~..HEAD"
15
echo
16
git log --no-merges --oneline "$COMMIT_RANGE"
ci/lint/docker-entrypoint.sh
@@ -6,7 +6,7 @@ export LC_ALL=C
git config --global --add safe.directory /bitcoin
if [ -z "$1" ]; then
- bash -ic "./ci/lint/06_script.sh"
+ LOCAL_BRANCH=1 bash -ic "./ci/lint/06_script.sh"
else
exec "$@"
fi
0 commit comments