Skip to content

Commit

Permalink
FIXED: require_prolog_version/2: silent failure of git version parsing
Browse files Browse the repository at this point in the history
Git version parsing fails if we are at a release.
  • Loading branch information
JanWielemaker committed Dec 20, 2023
1 parent 028c62c commit e6c1577
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/prolog_versions.pl
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@
-> true
; GitReq = git(ReqRev, ReqHash),
ReqNumbers == VNumbers
-> ( current_prolog_flag(version_git, GitVersion)
-> parse_version(GitVersion, _, git(Rev, Hash)),
( ReqRev < Rev
-> ( current_prolog_flag(version_git, GitVersion),
parse_version(GitVersion, _, git(Rev, Hash))
-> ( ReqRev < Rev
-> true
; ReqRev == Rev,
( ( ReqHash == '-' ;
Expand Down

0 comments on commit e6c1577

Please sign in to comment.