Skip to content

Commit c3e2f19

Browse files
mikamichal42
authored andcommitted
scripts/setlocalversion: update comment
A tagged repository state isn't enough, git describe only looks at signed or annotated tags (git tag -a/-s). This documentation update makes sure the comment matches the current behaviour. Signed-off-by: Michael Prokop <mika@grml.org> Signed-off-by: Michal Marek <mmarek@suse.cz>
1 parent cbcf14a commit c3e2f19

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/setlocalversion

+4-2
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,10 @@ if test "$CONFIG_LOCALVERSION_AUTO" = "y"; then
160160
# full scm version string
161161
res="$res$(scm_version)"
162162
else
163-
# apped a plus sign if the repository is not in a clean tagged
164-
# state and LOCALVERSION= is not specified
163+
# append a plus sign if the repository is not in a clean
164+
# annotated or signed tagged state (as git describe only
165+
# looks at signed or annotated tags - git tag -a/-s) and
166+
# LOCALVERSION= is not specified
165167
if test "${LOCALVERSION+set}" != "set"; then
166168
scm=$(scm_version --short)
167169
res="$res${scm:++}"

0 commit comments

Comments
 (0)