BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
f253f725
Commit
f253f725
authored
Feb 16, 2016
by
Yorick Peterse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned up Repository#initialize
The "default_branch" argument is never used and the "project" argument isn't optional.
parent
3de6edd6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
project.rb
app/models/project.rb
+1
-1
project_wiki.rb
app/models/project_wiki.rb
+1
-1
repository.rb
app/models/repository.rb
+1
-1
No files found.
app/models/project.rb
View file @
f253f725
...
...
@@ -342,7 +342,7 @@ class Project < ActiveRecord::Base
end
def
repository
@repository
||=
Repository
.
new
(
path_with_namespace
,
nil
,
self
)
@repository
||=
Repository
.
new
(
path_with_namespace
,
self
)
end
def
commit
(
id
=
'HEAD'
)
...
...
app/models/project_wiki.rb
View file @
f253f725
...
...
@@ -123,7 +123,7 @@ class ProjectWiki
end
def
repository
Repository
.
new
(
path_with_namespace
,
default_branch
,
@project
)
Repository
.
new
(
path_with_namespace
,
@project
)
end
def
default_branch
...
...
app/models/repository.rb
View file @
f253f725
...
...
@@ -15,7 +15,7 @@ class Repository
Gitlab
::
Popen
.
popen
(
%W(find
#{
repository_downloads_path
}
-not -path
#{
repository_downloads_path
}
-mmin +120 -delete)
)
end
def
initialize
(
path_with_namespace
,
default_branch
=
nil
,
project
=
nil
)
def
initialize
(
path_with_namespace
,
project
)
@path_with_namespace
=
path_with_namespace
@project
=
project
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment