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 7438633 commit ee2c73fCopy full SHA for ee2c73f
1 file changed
.readthedocs.yml
@@ -24,7 +24,14 @@ build:
24
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ];
25
then
26
base_branch=main;
27
- git fetch --depth=1 origin $base_branch;
+ git fetch --depth=50 origin $base_branch;
28
+ for attempt in $(seq 10);
29
+ do
30
+ if ! git merge-base HEAD origin/$base_branch;
31
+ then
32
+ git fetch --deepen=50 origin $base_branch;
33
+ fi;
34
+ done;
35
if ! git merge --no-edit origin/$base_branch;
36
37
echo "Unsuccessful merge with '$base_branch' branch, skipping the build";
0 commit comments