Граф коммитов

11 Коммитов

Автор SHA1 Сообщение Дата
Mislav Marohnić 01c3099abe Fix crash in `WorkdirName` when within bare git repo
`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
2017-06-26 20:22:11 +02:00
Mislav Marohnić f7c1105df3 Copy to clipboard for `create`, `issue`, `pull-request`, `release`
Also add `--browse` functionality to `create` and `release` for parity
with `issue` and `pull-request`.
2016-09-11 18:21:23 +02:00
Mislav Marohnić 6fdc4c1a88 Change `hub create` to output the URL of the new repository 2016-09-11 04:42:24 +02:00
Mislav Marohnić 35e9dfed30 Fix test broken by verbose output change 2016-08-16 17:43:59 +02:00
Mislav Marohnić 00b846af46 Backport cukes from 1.12-stable branch 2014-12-24 20:20:28 -08:00
Mislav Marohnić 95129ee632 Fix test failure on Ruby 1.8 due to hash order
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
2014-02-28 18:13:46 +01:00
Mislav Marohnić c54a78953f Enable API debug output by setting HUB_VERBOSE
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/...
    > ...
2014-02-28 17:54:37 +01:00
Mislav Marohnić 99c51069fa simplify assertion of supplied API params 2013-05-12 21:11:42 +02:00
Mislav Marohnić a5dd846835 `create`: don't choke if current directory name contains spaces 2012-11-22 13:27:01 +01:00
Mislav Marohnić d91214c4e0 `create` command uses API response to assign remote URL
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
2012-11-22 13:27:01 +01:00
Mislav Marohnić ee8b35d828 rewrite `hub create` tests as cukes 2012-05-08 13:01:59 +02:00