Skip to content

Commit

Permalink
fix(build): Fix version detection in sparse git checkouts (#803) (#818)
Browse files Browse the repository at this point in the history
Previous fix got us into the case statement but didn't provide any useful information once we got there. This provides *something*, at least.
  • Loading branch information
simoncozens authored Feb 5, 2020
1 parent 627e4e5 commit dcd0023
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build-aux/git-version-gen
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ then
# derive a version string.
elif test "`git log -1 --pretty=format:x . 2>/dev/null`" = x \
&& v=`git describe --tags --abbrev=7 --match="$prefix*" HEAD 2>/dev/null \
|| git describe --tags --abbrev=7 HEAD 2>/dev/null` \
|| git describe --tags --abbrev=7 HEAD 2>/dev/null \
|| git log -1 --pretty=format:'v0-HEAD-%h' 2>/dev/null` \
&& v=`printf '%s\n' "$v" | sed "$tag_sed_script"` \
&& case $v in
$prefix[0-9]*) ;;
Expand Down

0 comments on commit dcd0023

Please sign in to comment.