mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-09 03:51:20 -03:00
Enable support for custom versioning
Now that we're working on the 3.0.0 major release it is more important than ever that fish binaries built by developers have version strings which clearly communicate where they came from.
This commit is contained in:
@@ -12,7 +12,7 @@ DEF_VER=unknown
|
||||
if test -f version
|
||||
then
|
||||
VN=$(cat version) || VN="$DEF_VER"
|
||||
elif ! VN=$(git describe --always --dirty 2>/dev/null); then
|
||||
elif ! VN=$(git rev-parse --abbrev-ref HEAD)/$(git describe --always --dirty --tags 2>/dev/null); then
|
||||
VN="$DEF_VER"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user