Skip to content

Commit 57d3486

Browse files
committed
scripts: get branch name from cpython
1 parent fb11ee6 commit 57d3486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ mkdir -p logs
1515
# This confval is not needed since 3.12.
1616
# In 3.13, its presence messes 3.13's syntax checking (?)
1717
opts="-D language=${PYDOC_LANGUAGE} --keep-going -w ../../logs/sphinxwarnings.txt"
18-
minor_version=$(git branch --show-current | sed 's|^3\.||')
18+
minor_version=$(git -C cpython/Doc branch --show-current | sed 's|^3\.||')
1919
if [ $minor_version -lt 12 ]; then
2020
opts += '-D gettext_compact=False'
2121
fi

0 commit comments

Comments
 (0)