Fix can't get symblic-ref e.g. rebase conflicting
Reduce unused variable for vcs_info