소스 검색

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;