Skip to content

Commit fe33122

Browse files
author
root
committed
Fix empty repo detection to display Git Instructions
1 parent da7ba3e commit fe33122

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: lib/redmine_git_hosting/patches/repositories_controller_patch.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def self.included(base)
2222
end
2323

2424
def show_with_git_instructions
25-
if @repository.is_a?(Repository::Git) and @repository.entries(@path, @rev).blank?
25+
26+
if @repository.is_a?(Repository::Git) and @rev.blank?
2627
# Fake list of repos
2728
@repositories = @project.all_repos
2829
render :action => 'git_instructions'

0 commit comments

Comments
 (0)