Skip to content

Commit e1817a6

Browse files
Merge bitcoin-core/secp256k1#1199: ci: Minor improvements inspired by Bitcoin Core
c241586 ci: Don't fetch git history (Tim Ruffing) 0ecf318 ci: Use remote pull/merge ref instead of local git merge (Tim Ruffing) Pull request description: This steals two recent CI improvements from bitcoin/bitcoin. See individual commit messages. ACKs for top commit: sipa: utACK c241586 Tree-SHA512: 966130f45767c6bee8bc041d7e90a3166591a54c7cfccdcf4dff99aa4f6ccc2d02544fa7dca9fd020241349775da3cbd9bdbb041fcdd32de7426efd9dcc9c7f8
2 parents 1bff200 + c241586 commit e1817a6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.cirrus.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
env:
2+
### cirrus config
3+
CIRRUS_CLONE_DEPTH: 1
24
### compiler options
35
HOST:
46
WRAPPER_CMD:
@@ -53,11 +55,11 @@ cat_logs_snippet: &CAT_LOGS
5355

5456
merge_base_script_snippet: &MERGE_BASE
5557
merge_base_script:
56-
- if [ "$CIRRUS_PR" = "" ]; then exit 0; fi
57-
- git fetch $CIRRUS_REPO_CLONE_URL $CIRRUS_BASE_BRANCH
5858
- git config --global user.email "ci@ci.ci"
5959
- git config --global user.name "ci"
60-
- git merge FETCH_HEAD # Merge base to detect silent merge conflicts
60+
- if [ "$CIRRUS_PR" = "" ]; then exit 0; fi
61+
- git fetch --depth=1 $CIRRUS_REPO_CLONE_URL "pull/${CIRRUS_PR}/merge"
62+
- git checkout FETCH_HEAD # Use merged changes to detect silent merge conflicts
6163

6264
linux_container_snippet: &LINUX_CONTAINER
6365
container:

0 commit comments

Comments
 (0)