Browse Source

Add FIXME note about shallow clones

Alois Mahdal 10 years ago
parent
commit
2f878d5647
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      mkit/include/common.sh

+ 4
- 0
mkit/include/common.sh View File

182
     # meta-data is to *identify* the code, and provide safe path back
182
     # meta-data is to *identify* the code, and provide safe path back
183
     # to tree; commit refs are already perfect for that.
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
     local version=$VERSION
189
     local version=$VERSION
186
     local stage=$STAGE
190
     local stage=$STAGE
187
     if git rev-parse HEAD >&/dev/null;
191
     if git rev-parse HEAD >&/dev/null;