|
@@ -182,6 +182,10 @@ get_version() {
|
182
|
182
|
# meta-data is to *identify* the code, and provide safe path back
|
183
|
183
|
# to tree; commit refs are already perfect for that.
|
184
|
184
|
#
|
|
185
|
+ # FIXME: The assumpton "if we are in git repo, we can read version
|
|
186
|
+ # from tags" fails if we are in shallow clone made from
|
|
187
|
+ # other than a tagged commit.
|
|
188
|
+ #
|
185
|
189
|
local version=$VERSION
|
186
|
190
|
local stage=$STAGE
|
187
|
191
|
if git rev-parse HEAD >&/dev/null;
|