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:
Jarek Radosz 2022-01-09 20:25:58 +01:00 committed by GitHub
parent 5c74f048a5
commit 40147ca2ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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