aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHank Leininger (AI Agent Signing Key)2026-10-25 22:23:38 -0600
committerrfjakob2026-10-28 09:12:39 +0100
commit3ebd75bc0427a543e524185e0802da5779ba622c (patch)
tree7882e24f5da6c47b6dc192ed0263ececc6ba1367
parenta8b36f0ad9cca0bc605ba5104ff99b2866cee0db (diff)
build.bash: get the version from git in worktrees, tooHEADmaster
In a git worktree, .git is a file rather than a directory, so the version came out as "[unknown]". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
-rwxr-xr-xbuild.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.bash b/build.bash
index e78188e..4623a4f 100755
--- a/build.bash
+++ b/build.bash
@@ -24,7 +24,7 @@ go version > /dev/null
GOPATH1=$(go env GOPATH | cut -f1 -d:)
# gocryptfs version according to git or a VERSION file
-if [[ -d .git ]] ; then
+if [[ -e .git ]] ; then
GITVERSION=$(git describe --tags --dirty || echo "[no_tags_found]")
GITBRANCH=$(git rev-parse --abbrev-ref HEAD)
if [[ -n $GITBRANCH && $GITBRANCH != master ]] ; then