better selection of current branch which can be the same with master (if no commits happened)