Skip to content

Commit

Permalink
fix version.sh when building from a git worktree
Browse files Browse the repository at this point in the history
In a git worktree .git is a regular file that contains a reference to
its git directory
  • Loading branch information
odrling committed May 31, 2024
1 parent 2916447 commit aa65b58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export GIT_DIR="${srcdir}/.git"

# If no git repo try to read from the existing git_version.h, for building from tarballs
version_h_path="${builddir}/git_version.h"
if ! test -d "${srcdir}/.git"; then
if ! test -e "${srcdir}/.git"; then
if test -f "${version_h_path}"; then
while read line; do
set -- $line
Expand Down

0 comments on commit aa65b58

Please sign in to comment.