Take branch into account when searching for commit

When in /commits and doing a search, branch is never taken into account and 'master' is used. Pass branch name to `log` so that search is performed within current branch.