diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2021-05-23 05:14:26 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2021-05-26 21:01:51 +0200 |
commit | ffaf62a8050b5f7995083ee93526b57d8d79fec4 (patch) | |
tree | 0808e5154d57f9474ba9401283f308eb160b8b38 /scripts/documentation-file-ref-check | |
parent | scripts/setlocalversion: remove workaround for old make-kpkg (diff) | |
download | linux-ffaf62a8050b5f7995083ee93526b57d8d79fec4.tar.xz linux-ffaf62a8050b5f7995083ee93526b57d8d79fec4.zip |
scripts/setlocalversion: add more comments to -dirty flag detection
This script stumbled on the read-only source tree over again:
- a2bb90a08cb3 ("kbuild: fix delay in setlocalversion on readonly
source")
- cdf2bc632ebc ("scripts/setlocalversion on write-protected source
tree")
- 8ef14c2c41d9 ("Revert "scripts/setlocalversion: git: Make -dirty
check more robust"")
- ff64dd485730 ("scripts/setlocalversion: Improve -dirty check with
git-status --no-optional-locks")
Add comments to clarify that this script should never ever try to write
to the source tree.
'git describe --dirty' might look as a simple solution for appending
the -dirty string, but we cannot use it because it creates the
.git/index.lock file.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Nico Schottelius <nico-linuxsetlocalversion@schottelius.org>
Diffstat (limited to 'scripts/documentation-file-ref-check')
0 files changed, 0 insertions, 0 deletions