changed the definition of "current branch" to HEAD