mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 02:41:13 +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
|
||||
@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')
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user