From 3ebd75bc0427a543e524185e0802da5779ba622c Mon Sep 17 00:00:00 2001 From: Hank Leininger (AI Agent Signing Key) Date: Sun, 25 Oct 2026 22:23:38 -0600 Subject: build.bash: get the version from git in worktrees, too 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 --- build.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3