Skip to content

Commit 63fda10

Browse files
author
Nicolas
committed
Merge pull request #259 from niosHD/fix-repositoy-empty
Fix: Some (very old) repositories have been indentified as empty
2 parents d8ba7bc + f757de9 commit 63fda10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ def gitolite_hook_key
318318

319319

320320
def empty?
321-
if extra_info.nil? || !extra_info.has_key?('heads')
321+
if extra_info.nil? || ( !extra_info.has_key?('heads') && !extra_info.has_key?('branches') )
322322
return true
323323
else
324324
return false

0 commit comments

Comments
 (0)