Skip to content

Commit ee2c73f

Browse files
committed
fixup! Rewrite RTD configuration to use build.jobs rather than build.commands
Add base branch deepening.
1 parent 7438633 commit ee2c73f

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.readthedocs.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@ build:
2424
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ];
2525
then
2626
base_branch=main;
27-
git fetch --depth=1 origin $base_branch;
27+
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;
2835
if ! git merge --no-edit origin/$base_branch;
2936
then
3037
echo "Unsuccessful merge with '$base_branch' branch, skipping the build";

0 commit comments

Comments
 (0)