`git rev-parse --show-toplevel` returns an empty string with success
status when inside a bare git repo.
This avoids the go crash and also tweaks `hub issue` and `hub
pull-request` to work even if current working directory name couldn't be
obtained because it's only used for looking up issue/PR templates, which
isn't critical functionality.
Fixes https://github.com/github/hub/issues/1331
Hashes are unordered in Ruby 1.8, so we can't check for this in debug
output: `{"name": "dotfiles", "private": false}`. The keys might appear
in different order.
A proper fix would be to normalize keys order before output assertion in
tests, but I can't be bothered to make that. Here I'm simply avoiding to
make any assertions for that line.
https://travis-ci.org/github/hub/jobs/19817554
This will print information about every HTTP request and response to
stderr. Authentication info is redacted.
Example:
$ HUB_VERBOSE=1 hub ci-status
> GET https://api.github.com/...
> ...
This ensures we end up with the correct capitalization of user's login
name, and gives the opportunity to the server to change the project name
without having us choke on it.
Fixes#263