author: kx <kx@radix.pro> 2023-10-28 16:30:02 +0300
committer: kx <kx@radix.pro> 2023-10-28 16:30:02 +0300
commit: 555b9458002fcb47af0f95dc6c1d4fb8773d4431
parent: db52e5179dffeb7dc835a4bef1788a839ab8e615
Commit Summary:
Diffstat:
1 file changed, 3 insertions, 0 deletions
diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index ae1de3c47..df4c3af5b 100755
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -53,6 +53,9 @@ scm_version()
short=false
cd "$srctree"
+ if [ ! -e .git ] ; then
+ return
+ fi
if test -e .scmversion; then
cat .scmversion
return