mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
Extend config/version.rb with more informations (#5061)
This gives installations not using git checkouts to provide all the informations needed for the internal version checks and version display in the dashboard. The build:stamp rake task was extended to also add the new informations.
This commit is contained in:
parent
d70ecf1c53
commit
4b5724ec02
3 changed files with 42 additions and 18 deletions
|
@ -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 --match "v[0-9]*"`,
|
||||
installed_describe: Discourse.full_version,
|
||||
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 --match "v[0-9]*"`,
|
||||
installed_describe: Discourse.full_version,
|
||||
missing_versions_count: missing_versions_count,
|
||||
git_branch: Discourse.git_branch,
|
||||
updated_at: updated_at
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue