[PATCH 15/18] version-gen: remove default version
There's two use-cases:
1) We are in a git repository
2) We are in a dir extracted from a tarball
Is there any other case?
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
GIT-VERSION-GEN | 3 ---
1 file changed, 3 deletions(-)
diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN
index 53b3d64131..2b0973f4b5 100755
--- a/GIT-VERSION-GEN
+++ b/GIT-VERSION-GEN
@@ -1,7 +1,6 @@
#!/bin/sh
GVF=GIT-VERSION-FILE
-DEF_VER=2.40.GIT
get_version () {
test -f version && cat version && return
@@ -10,7 +9,5 @@ get_version () {
VN=$(get_version)
-: "${VN:=$DEF_VER}"
-
test -r $GVF && test "GIT_VERSION = $VN" = "$(cat $GVF)" && exit
echo "GIT_VERSION = $VN" | tee $GVF >&2
--
2.40.0+fc1