Skip to content

IdentityModel patch to remove commit SHA #199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Matt Thalman <[email protected]>
Date: Wed, 30 Aug 2023 09:10:55 -0500
Subject: [PATCH] Remove commit SHA from version string

Needs https://github.com/dotnet/source-build/issues/3573
---
updateAssemblyInfo.sh | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/updateAssemblyInfo.sh b/updateAssemblyInfo.sh
index abbcfac6..2c6a119e 100755
--- a/updateAssemblyInfo.sh
+++ b/updateAssemblyInfo.sh
@@ -9,11 +9,9 @@ date=$(date '+%y%m%d%H%M%S')
# Formats the date by replacing the 4-digit year with a 2-digit value and then subtract 19
dateTimeStamp=$(echo $((10#${date:0:2}-19)))${date:2}

-commitSha=$(git rev-parse HEAD)
-
assemblyVersion=$(sed -n 's/.*<assemblyVersion>\([^<]*\)<.*/\1/p' $PWD/buildConfiguration.xml)
assemblyFileVersion="$assemblyVersion.${dateTimeStamp::-6}" # Trim minutes/seconds
-assemblyInformationalVersion="$assemblyVersion.$dateTimeStamp.$commitSha"
+assemblyInformationalVersion="$assemblyVersion.$dateTimeStamp"

echo "assemblyVersion: $assemblyVersion"
echo "assemblyFileVersion: $assemblyFileVersion"