mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 21:21:19 +08:00
DEV: Don't warn on missing git tags (#15507)
Fixes the following output in specs: ``` fatal: No names found, cannot describe anything. ```
This commit is contained in:
@ -667,7 +667,7 @@ module Discourse
|
|||||||
|
|
||||||
def self.full_version
|
def self.full_version
|
||||||
@full_version ||= begin
|
@full_version ||= begin
|
||||||
git_cmd = 'git describe --dirty --match "v[0-9]*"'
|
git_cmd = 'git describe --dirty --match "v[0-9]*" 2> /dev/null'
|
||||||
self.try_git(git_cmd, 'unknown')
|
self.try_git(git_cmd, 'unknown')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user