Skip to content

[3.15] gh-159440: Pass --work-tree to the git commands used for the version tag (GH-159442) - #159443

Merged
itamaro merged 1 commit into
python:3.15from
miss-islington:backport-637fb36-3.15
Oct 15, 2026
Merged

itamaro merged 1 commit into
python:3.15from
miss-islington:backport-637fb36-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

--git-dir alone does not imply a work tree, so in an out-of-tree build
git checked the build directory, and every tracked file looked deleted:
sys.version always carried a spurious "-dirty" suffix.
(cherry picked from commit 637fb36)

Co-authored-by: sendaoYan yansendao@hygon.cn

…rsion tag (pythonGH-159442)

`--git-dir` alone does not imply a work tree, so in an out-of-tree build
git checked the build directory, and every tracked file looked deleted:
`sys.version` always carried a spurious "-dirty" suffix.
(cherry picked from commit 637fb369c751efb0564e35757318e72874e21619)

Co-authored-by: sendaoYan <yansendao@hygon.cn>
@itamaro
itamaro enabled auto-merge (squash) October 15, 2026 04:27
@itamaro
itamaro merged commit 2337dd6 into python:3.15 Oct 15, 2026
93 of 95 checks passed
@miss-islington
miss-islington deleted the backport-637fb36-3.15 branch October 15, 2026 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants