Преглед изворни кода

Add FIXME note about shallow clones

Alois Mahdal пре 9 година
родитељ
комит
2f878d5647
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4
    0
      mkit/include/common.sh

+ 4
- 0
mkit/include/common.sh Прегледај датотеку

@@ -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;