jbox-web/redmine_git_hosting — pull request #259 by niosHD (2014-08-11 18:39:13+00:00)
Title: Fix: Some (very old) repositories have been indentified as empty

We have some rather old archived and/or closed repositories in our
redmine installation which definitely have content but have been
treated like empty repositories.

These old repos do not have a 'heads' key in the extra_info hash but
have a 'branches' key instead. Redmine switched from 'branches' to 'heads'
in revision 9283 and supports to upgrade from the old to the new format on the
next commit. However, supporting both keys means that I don't have to perform
dummy commits on inactive repos in order to make the repository viewer work
again.