]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - get-version
tests: request CAP_DAC_OVERRIDE
[thirdparty/lldpd.git] / get-version
index 5c118094363fb8f5339e418ff4a5f8b76c92f535..e926d88ba3aaab5c68fca5a5a3d0cf86105d86b7 100755 (executable)
@@ -35,12 +35,12 @@ elif [ -e .git ]; then
 
   # Check if we are on a dirty checkout.
   git update-index --refresh -q >/dev/null
-  dirty=$(git diff-index --name-only HEAD 2>/dev/null)
+  dirty=$(git diff-index --name-only --ignore-submodules=untracked HEAD 2>/dev/null)
   if [ -n "$dirty" ]; then
     version="$version-dirty"
   fi
 else
-  date +%F
+  version=$(date +%F)
 fi
 
 # Use printf to avoid the trailing new line that m4_esyscmd would not handle.