branch detection by commit hash