It looks like this has been missed - should it be getDefaultBranch() here?