I tried to build i3status in a worktree of my clone of the git repo, and was surprised when autoconf reported the version was "not-git". The cause is configure.ac checking for a .gitdirectory in the srcdir. However, when using worktrees, .git is a text file that contains info about where the actual .git directory can be found. The fix is, of course, to adjust the test to allow .git to be a file.
I tried to build i3status in a worktree of my clone of the git repo, and was surprised when autoconf reported the version was "not-git". The cause is
configure.ac
checking for a.git
directory in the srcdir. However, when using worktrees,.git
is a text file that contains info about where the actual.git
directory can be found. The fix is, of course, to adjust the test to allow.git
to be a file.