diff --git a/lib/discourse_updates.rb b/lib/discourse_updates.rb index 61df22e2aa3..3e2f14c6823 100644 --- a/lib/discourse_updates.rb +++ b/lib/discourse_updates.rb @@ -7,7 +7,7 @@ module DiscourseUpdates DiscourseVersionCheck.new( installed_version: Discourse::VERSION::STRING, installed_sha: (Discourse.git_version == 'unknown' ? nil : Discourse.git_version), - installed_describe: `git describe --dirty`, + installed_describe: `git describe --dirty --match "v[0-9]*"`, git_branch: Discourse.git_branch, updated_at: nil ) @@ -17,7 +17,7 @@ module DiscourseUpdates critical_updates: critical_updates_available?, installed_version: Discourse::VERSION::STRING, installed_sha: (Discourse.git_version == 'unknown' ? nil : Discourse.git_version), - installed_describe: `git describe --dirty`, + installed_describe: `git describe --dirty --match "v[0-9]*"`, missing_versions_count: missing_versions_count, git_branch: Discourse.git_branch, updated_at: updated_at