models: use symbolic-ref instead of git branch in current_branch()