We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9747804 + df26e69 commit 16b2fccCopy full SHA for 16b2fcc
saw-version/src/SAWVersion/savegitinfo.sh
@@ -61,8 +61,11 @@ gitbranch() {
61
echo Nothing
62
else
63
# Strip off the leading " " or "* "
64
- # and in casae we get more than one, combine on one line
+ # and in case we get more than one, combine on one line
65
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')
69
echo 'Just "'"$output"'"'
70
fi
71
}
0 commit comments