From df5be88a7789261e366e58f66146b3bb02063488 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 22 May 2015 11:18:58 +1000 Subject: [PATCH] fallback to hardcoded version if installed and not using git --- lib/discourse.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discourse.rb b/lib/discourse.rb index 845aaf482..e8cb003db 100644 --- a/lib/discourse.rb +++ b/lib/discourse.rb @@ -236,7 +236,7 @@ module Discourse begin $git_version ||= `git rev-parse HEAD`.strip rescue - $git_version = "unknown" + $git_version = Discourse::VERSION::STRING end end