Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gpt
large_projects
gitlabhq1
Commits
a31fe1a6
Commit
a31fe1a6
authored
12 years ago
by
Dmitriy Zaporozhets
Browse files
Options
Download
Plain Diff
Merge pull request #3407 from NARKOZ/patch-1
use convenient method to check for empty project repo
parents
e3f11642
7ed0dc01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/controllers/projects_controller.rb
app/controllers/projects_controller.rb
+3
-3
No files found.
app/controllers/projects_controller.rb
View file @
a31fe1a6
...
...
@@ -57,11 +57,11 @@ class ProjectsController < ProjectResourceController
respond_to
do
|
format
|
format
.
html
do
if
@project
.
repository
&&
!
@project
.
repository
.
empty?
if
@project
.
empty_repo?
render
"projects/empty"
else
@last_push
=
current_user
.
recent_push
(
@project
.
id
)
render
:show
else
render
"projects/empty"
end
end
format
.
js
...
...
This diff is collapsed.
Click to expand it.
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