Skip to content

Commit 3e9f607

Browse files
committed
Fetch Tags Before Git Describe
Signed-off-by: Sam Elliott <selliott@lowrisc.org>
1 parent 87b0d5b commit 3e9f607

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

build-clang-with-args.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ build_top_dir="${PWD}"
4242
# shellcheck source=sw-versions.sh
4343
source "${build_top_dir}/sw-versions.sh"
4444

45+
git -C "${build_top_dir}" fetch --tags
4546
tag_name="$(git -C "${build_top_dir}" describe --always)"
4647
toolchain_full_name="${toolchain_name}-${tag_name}"
4748

build-gcc-with-args.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ build_top_dir="${PWD}"
3939
# shellcheck source=sw-versions.sh
4040
source "${build_top_dir}/sw-versions.sh"
4141

42+
git -C "${build_top_dir}" fetch --tags
4243
tag_name="$(git -C "${build_top_dir}" describe --always)"
4344
set +x
4445
echo "##vso[task.setvariable variable=ReleaseTag]${tag_name}"

0 commit comments

Comments
 (0)