Fix repository sidebar if only one repo is present

In case you have only one repository in project, there is no option to download git revision, because the sidebar is hidden. Easy to fix move sidebar hook under repositories size condition.