repos: cleannup and fix landing-ref code....
repos: cleannup and fix landing-ref code.
with latest git update this exposed a bug when we allowed to set references like tip for git repos
now the defaults are loaded from a single place controlled by default branch for git.
Repos without master are now working just fine with new git and new logic.