1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/discourse_ynh.git synced 2024-09-03 18:26:18 +02:00
discourse_ynh/sources/patches/app-4-Fix-version-detection.patch

13 lines
383 B
Diff
Raw Normal View History

2019-06-25 21:22:10 +02:00
diff --git a/lib/discourse.rb b/lib/discourse.rb
index 2b53a91eb3..eec55647d5 100644
--- a/lib/discourse.rb
+++ b/lib/discourse.rb
@@ -439,7 +439,7 @@ module Discourse
$full_version ||=
begin
git_cmd = 'git describe --dirty --match "v[0-9]*"'
- self.try_git(git_cmd, 'unknown')
+ self.try_git(git_cmd, Discourse::VERSION::STRING)
end
end