diff options
| author | Douwe Maan <douwe@gitlab.com> | 2015-04-21 15:09:15 +0200 |
|---|---|---|
| committer | Douwe Maan <douwe@gitlab.com> | 2015-04-24 12:29:36 +0200 |
| commit | 84a1590252c63c710bceaa7a394799cdc5109505 (patch) | |
| tree | 12d9b499acad48dc9420d095803705093d2b135d /app/models/project.rb | |
| parent | b0ed2ff1a69df384a1cb9a184c0528bec1986827 (diff) | |
| download | gitlab-ce-84a1590252c63c710bceaa7a394799cdc5109505.tar.gz | |
Let commit model know about its project.
Diffstat (limited to 'app/models/project.rb')
| -rw-r--r-- | app/models/project.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 64ee2c2212b..4c1404ee9f8 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -254,7 +254,11 @@ class Project < ActiveRecord::Base end def repository - @repository ||= Repository.new(path_with_namespace) + @repository ||= Repository.new(path_with_namespace, nil, self) + end + + def commit(id) + repository.commit(id) end def saved? |
