update git branch detection