From e69e6b22747aa71507db66c8e063f8610138f31b Mon Sep 17 00:00:00 2001 From: Zhichang Yu Date: Fri, 6 Dec 2024 22:51:31 +0800 Subject: [PATCH] Fix VERSION --- Dockerfile | 2 +- api/versions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 03ba0bd7..05eb4ccb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -120,7 +120,7 @@ RUN --mount=type=cache,id=ragflow_npm,target=/root/.npm,sharing=locked \ COPY .git /ragflow/.git -RUN version_info=$(git describe --tags --match=v* --dirty --always); \ +RUN version_info=$(git describe --tags --match=v* --always); \ if [ "$LIGHTEN" == "1" ]; then \ version_info="$version_info slim"; \ else \ diff --git a/api/versions.py b/api/versions.py index 73b0a60b..a1f170d4 100644 --- a/api/versions.py +++ b/api/versions.py @@ -43,7 +43,7 @@ def get_closest_tag_and_count(): try: # Get the current commit hash version_info = ( - subprocess.check_output(["git", "describe", "--tags", "--match=v*", "--dirty", "--always"]) + subprocess.check_output(["git", "describe", "--tags", "--match=v*", "--always"]) .strip() .decode("utf-8") )