summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2018-05-30 11:52:36 -0500
committerBrett Walker <bwalker@gitlab.com>2018-05-30 11:52:36 -0500
commitc5c5f18b93b2edcd9567fa2fb43a6e5bf2959140 (patch)
treedfbf19d4663af9a0289f13ea262667f98be7f949
parentd0d551b07289142593b421fb0e08f4684d9120ba (diff)
downloadgitlab-ce-c5c5f18b93b2edcd9567fa2fb43a6e5bf2959140.tar.gz
better handle a missing gitlab-shell version
-rw-r--r--config/initializers/console_message.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/initializers/console_message.rb b/config/initializers/console_message.rb
index 2c46a25f365..f7c26732e6d 100644
--- a/config/initializers/console_message.rb
+++ b/config/initializers/console_message.rb
@@ -3,8 +3,8 @@ if defined?(Rails::Console)
# note that this will not print out when using `spring`
justify = 15
puts "-------------------------------------------------------------------------------------"
- puts " Gitlab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab.revision})"
- puts " Gitlab Shell:".ljust(justify) + Gitlab::Shell.new.version
+ puts " GitLab:".ljust(justify) + "#{Gitlab::VERSION} (#{Gitlab.revision})"
+ puts " GitLab Shell:".ljust(justify) + "#{Gitlab::VersionInfo.parse(Gitlab::Shell.new.version)}"
puts " #{Gitlab::Database.adapter_name}:".ljust(justify) + Gitlab::Database.version
puts "-------------------------------------------------------------------------------------"
end