Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-02 23:37:20 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-02 23:37:20 +0400
commit03f41e2820d76d272aa7357cf726b5d131bb80e0 (patch)
tree8f9b317572899049d43de0d72194b9b50da1648e /app/models/tree.rb
parent0c5795a49726402d2f2751d8b05d5bbb9dd23511 (diff)
Gitlab::Git::Tree & Blob added
Diffstat (limited to 'app/models/tree.rb')
-rw-r--r--app/models/tree.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/models/tree.rb b/app/models/tree.rb
index e726c596f7e..042050527c1 100644
--- a/app/models/tree.rb
+++ b/app/models/tree.rb
@@ -1,14 +1,10 @@
class Tree
- attr_accessor :path, :tree, :ref
+ attr_accessor :raw
def initialize(repository, sha, ref = nil, path = nil)
@raw = Gitlab::Git::Tree.new(repository, sha, ref, path)
end
- def invalid?
- @raw.nil?
- end
-
def method_missing(m, *args, &block)
@raw.send(m, *args, &block)
end