Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

use convenient method to check for empty project repo #3407

Merged
merged 1 commit into from

3 participants

@NARKOZ
Collaborator

No description provided.

@coveralls

Coverage increased (+0.07%) when pulling 7ed0dc0 on NARKOZ:patch-1 into 58a1ed6 on gitlabhq:master.

View Details

@randx randx merged commit a31fe1a into gitlabhq:master

1 check passed

Details default The Travis build passed
@randx
Owner

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 26, 2013
  1. @NARKOZ
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/controllers/projects_controller.rb
View
6 app/controllers/projects_controller.rb
@@ -57,11 +57,11 @@ def show
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
Something went wrong with that request. Please try again.