diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:27:36 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:33:20 -0600 |
commit | f88ff0cc0c5c1db7089a5f0062a53d38eb27ebde (patch) | |
tree | 54f1501e16405636d62bf7e1af83a8b34d54951b /lib/gitlab/git | |
parent | 6f5cd03fcb63b379d218cf0b475f85f675dd9fb6 (diff) | |
download | gitlab-ce-f88ff0cc0c5c1db7089a5f0062a53d38eb27ebde.tar.gz |
Stylistic tweaks
Diffstat (limited to 'lib/gitlab/git')
-rw-r--r-- | lib/gitlab/git/repository.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index d1dd3da5ed2..4b6ad8037ce 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -31,6 +31,10 @@ module Gitlab @attributes = Gitlab::Git::Attributes.new(path) end + delegate :empty?, + :bare?, + to: :rugged + # Default branch in the repository def root_ref @root_ref ||= discover_default_branch @@ -160,10 +164,6 @@ module Gitlab !empty? end - delegate :empty?, - :bare?, - to: :rugged - def repo_exists? !!rugged end |