Skip to content

Commit

Permalink
Fixed issue when building outside of GIT tree (fixes #1084)
Browse files Browse the repository at this point in the history
  • Loading branch information
pkleef committed Jan 10, 2023
1 parent ffae977 commit 205a516
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libsrc/Wi/mkgit_head.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ VALUE=000000

if test \! -f git_head.c
then
echo "char * git_head = \"$VALUE\";" > git_head.c
echo "#define GIT_HEAD_STR \"$VALUE\"" > git_head.c
echo "char * git_head = \"$VALUE\";" >> git_head.c
fi

VALUE=`git rev-parse --verify HEAD --short` || exit
Expand Down

0 comments on commit 205a516

Please sign in to comment.