From 0866ebb96280c05c85f1e608b1ffb87ae3322521 Mon Sep 17 00:00:00 2001 From: Jonne Hass Date: Wed, 21 Dec 2011 23:19:22 +0100 Subject: [PATCH] remove unused GIT_INFO [ci skip] --- config/initializers/git_info.rb | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 config/initializers/git_info.rb diff --git a/config/initializers/git_info.rb b/config/initializers/git_info.rb deleted file mode 100644 index 885e3a91b..000000000 --- a/config/initializers/git_info.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (c) 2010-2011, Diaspora Inc. This file is -# licensed under the Affero General Public License version 3 or later. See -# the COPYRIGHT file. - -unless ENV['HEROKU'] - s = `git show --name-only 2>/dev/null || :` - if (s.nil? or s.empty?) - path = File.expand_path("config/gitversion") - begin - if (File.exists?( path)) - s = '' - f = File.open( path) - f.each_line do |line| - s += line - end - f.close - end - rescue - s = "" - end - end - GIT_INFO = s - # What's the scope of this s? Leave to GC just in case... - s = nil -else - GIT_INFO = nil -end