Skip to content

Commit 16b2fcc

Browse files
authored
Merge pull request #2603 from GaloisInc/tidy-release-git-string
Adjust the version string generated for release builds
2 parents 9747804 + df26e69 commit 16b2fcc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

saw-version/src/SAWVersion/savegitinfo.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,11 @@ gitbranch() {
6161
echo Nothing
6262
else
6363
# Strip off the leading " " or "* "
64-
# and in casae we get more than one, combine on one line
64+
# and in case we get more than one, combine on one line
6565
output=$(echo "$output" | sed 's/^..//' | tr '\n' ' ' | sed 's/ $//')
66+
# Replace "HEAD detached at v1.4" with "release tag v1.4"
67+
output=$(echo "$output" |\
68+
sed 's/HEAD detached at \(v[0-9][0-9]*\.\)/release tag \1/g')
6669
echo 'Just "'"$output"'"'
6770
fi
6871
}

0 commit comments

Comments
 (0)