summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-08 09:22:50 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-08 09:22:50 +0200
commit02484930e161f773a205bb1c1d29a8664755fd60 (patch)
tree295016eb6fbc00e7c373a194353a58a384df2b8d /app/models/project.rb
parentc28786ecbeb7ba2e630896b37481b918af4ed39e (diff)
downloadgitlab-ce-02484930e161f773a205bb1c1d29a8664755fd60.tar.gz
Removed Project#discover_default_branch since it not needed any more
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 65d42b6b870..0b32c90f09b 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -302,14 +302,6 @@ class Project < ActiveRecord::Base
end
end
- def discover_default_branch
- # Discover the default branch, but only if it hasn't already been set to
- # something else
- if repository.exists? && default_branch.nil?
- update_attributes(default_branch: self.repository.discover_default_branch)
- end
- end
-
def update_merge_requests(oldrev, newrev, ref, user)
return true unless ref =~ /heads/
branch_name = ref.gsub("refs/heads/", "")