|
@@ -161,10 +161,6 @@ get_version() {
|
161
|
161
|
# meta-data is to *identify* the code, and provide safe path back
|
162
|
162
|
# to tree; commit refs are already perfect for that.
|
163
|
163
|
#
|
164
|
|
- # FIXME: The assumpton "if we are in git repo, we can read version
|
165
|
|
- # from tags" fails if we are in shallow clone made from
|
166
|
|
- # other than a tagged commit.
|
167
|
|
- #
|
168
|
164
|
# FIXME: Using PRERELEASE for release IDs may not be compatible with
|
169
|
165
|
# release strategy implemented in release.sh
|
170
|
166
|
#
|
|
@@ -184,7 +180,7 @@ get_version() {
|
184
|
180
|
then # the tree is "dirty", i.e. has been edited
|
185
|
181
|
local dirty=dirty
|
186
|
182
|
fi
|
187
|
|
- version=${lasttag:1}
|
|
183
|
+ test -n "$lasttag" && version=${lasttag:1}
|
188
|
184
|
local suffix=""
|
189
|
185
|
case $prerl:$commit:$dirty in
|
190
|
186
|
::) suffix="" ;;
|