Skip to content

Commit 69d3d40

Browse files
committed
build-python: Fix rebuilding with an already checked out directory
After applying patches (with plain 'patch' instead of 'git am'), we need to reset the tree to be able to check out the targeted version again.
1 parent b0864ea commit 69d3d40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

build-python.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ fi
120120
if [ -n "$SYNC" ] || [ -n "$CHECKOUT_PYTHON" ]; then
121121
cd cpython-mingw
122122
[ -z "$SYNC" ] || git fetch
123+
git reset --hard
123124
git checkout $PYTHON_VERSION_MINGW
124125
cat ../patches/python/*.patch | patch -Nup1
125126
autoreconf -vfi

0 commit comments

Comments
 (0)