Adding fix to finding commits in branches