瀏覽代碼

Add FIXME note about shallow clones

Alois Mahdal 10 年之前
父節點
當前提交
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;