From: Felipe Contreras Date: Fri, 14 Apr 2023 12:18:38 GMT Subject: [PATCH 15/18] version-gen: remove default version Message-ID: <20230414121841.373980-16-felipe.contreras@gmail.com> In-Reply-To: <20230414121841.373980-1-felipe.contreras@gmail.com> 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 --- 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