mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 13:41:31 +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:
parent
5c74f048a5
commit
40147ca2ee
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user