diff options
| author | 2026-05-12 08:22:44 +0000 | |
|---|---|---|
| committer | 2026-05-12 08:22:44 +0000 | |
| commit | 23f98f3457a418ce5238945c5e674a46263dda88 (patch) | |
| tree | cc8f32ffa97cc73afa9b1cb87dcd93157b564212 | |
| parent | Add "bypass" capability to spamfilter (diff) | |
| download | solanum-amdj/autotools-version-fix.tar.gz solanum-amdj/autotools-version-fix.tar.bz2 solanum-amdj/autotools-version-fix.zip | |
include/serno.h.SH: correct check for git directory amdj/autotools-version-fix
Commit 6ba61b33f7ec557c02c1 split this logic up from the top
level Makefile.am but then failed to adjust the path to the
directory in the check
The result is that all builds now use a datecode of 0 and a
revision of "unknown"
| -rw-r--r-- | include/serno.h.SH | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/serno.h.SH b/include/serno.h.SH index 50d19b7c..e3793c5d 100644 --- a/include/serno.h.SH +++ b/include/serno.h.SH @@ -2,7 +2,7 @@ set -eu -if [ -d .git ]; then +if [ -d ../.git ]; then revh=$(git rev-list -1 --no-commit-header --date=format:%Y%m%d --format=%cd-%h HEAD 2>/dev/null || true) datecode=$(git rev-list -1 --no-commit-header --format=%ct HEAD 2>/dev/null || true) if [ -n "$revh" ] && [ -n "$datecode" ]; then |
