Skip to content

Conversation

@adityapatwardhan
Copy link
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
Member

Why are the two different?

@adityapatwardhan
Copy link
Member Author

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