Skip to content

Commit a47d779

Browse files
committed
lint: Improve location of the definition of the git log command options
Signed-off-by: 林博仁(Buo-ren, Lin) <[email protected]>
1 parent 14a2d44 commit a47d779

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

continuous-integration/generate-release-description.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ if ! git_tag_count="$(wc -l <<<"${git_tag_list}")"; then
3838
fi
3939

4040
detailed_changes_markup="## Detailed changes"$'\n\n'
41-
git_log_opts=(
42-
--format='format:* %s (%h) - %an'
43-
)
4441

4542
if test -v CI_COMMIT_TAG; then
4643
release_tag="${CI_COMMIT_TAG}"
@@ -107,6 +104,9 @@ else
107104
"${previous_git_tag}" \
108105
"${release_tag}" \
109106
1>&2
107+
git_log_opts=(
108+
--format='format:* %s (%h) - %an'
109+
)
110110
if ! detailed_changes_markup+="$(
111111
git log \
112112
"${git_log_opts[@]}" \

0 commit comments

Comments
 (0)