Skip to content

Commit c241586

Browse files
ci: Don't fetch git history
(copied from bitcoin/bitcoin@faa65f1)
1 parent 0ecf318 commit c241586

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.cirrus.yml

Lines changed: 3 additions & 1 deletion
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:
@@ -56,7 +58,7 @@ merge_base_script_snippet: &MERGE_BASE
5658
- git config --global user.email "[email protected]"
5759
- git config --global user.name "ci"
5860
- if [ "$CIRRUS_PR" = "" ]; then exit 0; fi
59-
- git fetch $CIRRUS_REPO_CLONE_URL "pull/${CIRRUS_PR}/merge"
61+
- git fetch --depth=1 $CIRRUS_REPO_CLONE_URL "pull/${CIRRUS_PR}/merge"
6062
- git checkout FETCH_HEAD # Use merged changes to detect silent merge conflicts
6163

6264
linux_container_snippet: &LINUX_CONTAINER

0 commit comments

Comments
 (0)