added a method to get the current branch name