travis-ci/travis-core — pull request #158 by drogus (2012-12-18 01:50:54+00:00)
Title: Fix gh-pages branch check

From commit description:

```
Travis::Request::Approval#accepted? method was called before
fetch_config was triggered and in the same time it depended on config
values. This commit fixes it, by checking if gh-pages branch should be
tested only after config is fetched.
```

I don't like this solution too much (splitting `accepted?` into to methods, then the need to discard config if gh-pages is not present, yet another if there), but I just wanted to make it work for now - Approval - Request coupling should be probably addressed later.

/cc @henrikhodne @svenfuchs @joshk