Skip to content

code coverage: Get GitCommitId using the ProductVersion from Assembly - #5651

Merged
Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
adityapatwardhan:CodecovGitCommit
Dec 8, 2017
Merged

Travis Plunk (TravisEz13) merged 1 commit into
PowerShell:masterfrom
adityapatwardhan:CodecovGitCommit

Conversation

@adityapatwardhan

Copy link
Copy Markdown
Member

PR Summary

We can no longer rely on PSVersionTable for the real Git commit Id. We can get it using the VersionInfo from System.Management.Automation.dll.

PR Checklist

Note: Please mark anything not applicable to this PR NA.

@TravisEz13

Copy link
Copy Markdown
Member

Why are the two different?

@adityapatwardhan

Copy link
Copy Markdown
Member Author

Travis Plunk (@TravisEz13) This is what we get currently on PSVersionTable:

Name                           Value
----                           -----
PSVersion                      6.0.0-rc
PSEdition                      Core
GitCommitId                    v6.0.0-rc
OS                             Microsoft Windows 10.0.16299
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

We need a real commit ID so we can checkout.

@TravisEz13 Travis Plunk (TravisEz13) changed the title Get GitCommitId using the ProductVersion from Assembly code coverage: Get GitCommitId using the ProductVersion from Assembly Dec 8, 2017
@TravisEz13
Travis Plunk (TravisEz13) merged commit 0bcc2a2 into PowerShell:master Dec 8, 2017
@TravisEz13 Travis Plunk (TravisEz13) added this to the 6.0.0-RC.2 milestone Dec 9, 2017
@adityapatwardhan
Aditya Patwardhan (adityapatwardhan) deleted the CodecovGitCommit branch November 1, 2018 17:38
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
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