bpo-27593: Revise git SCM build info. (#744) · pythoncapi/cpython@554626a · GitHub
Skip to content

Commit 554626a

Browse files
authored
bpo-27593: Revise git SCM build info. (python#744)
Use --short form of git hash. Use output from "git describe" for tag. Expected outputs: 1. previous hg 2. previous git 3. updated git Release (tagged) build: 1. Python 3.7.0a0 (v3.7.0a0:4def2a2901a5, ... 2. Python 3.7.0a0 (v3.7.0a0^0:05f53735c8912f8df1077e897f052571e13c3496, ... 3. Python 3.7.0a0 (v3.7.0a0:05f53735c8, ... Development build: 1. Python 3.7.0a0 (default:41df79263a11, ... 2. Python 3.7.0a0 (master:05f53735c8912f8df1077e897f052571e13c3496, ... 3. Python 3.7.0a0 (heads/master-dirty:05f53735c8, ... "dirty" means the working tree has uncommitted changes. See "git help describe" for more info.
1 parent 4830f58 commit 554626a

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

PCbuild/pythoncore.vcxproj

Lines changed: 2 additions & 2 deletions

configure

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2743,8 +2743,8 @@ HAS_GIT=no-repository
27432743
fi
27442744
if test $HAS_GIT = found
27452745
then
2746-
GITVERSION="git -C \$(srcdir) rev-parse HEAD"
2747-
GITTAG="git -C \$(srcdir) name-rev --tags --name-only HEAD"
2746+
GITVERSION="git -C \$(srcdir) rev-parse --short HEAD"
2747+
GITTAG="git -C \$(srcdir) describe --all --always --dirty"
27482748
GITBRANCH="git -C \$(srcdir) name-rev --name-only HEAD"
27492749
else
27502750
GITVERSION=""

configure.ac

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)