ingydotnet / git-hub

Do GitHub operations from the `git` command
MIT License
794 stars 62 forks source link

fix --json output for cases where we have a key_prefix #221

Closed perlpunk closed 8 years ago

perlpunk commented 8 years ago

Commands like pr-queue which have a key prefix would result in empty json or an error:

% git hub pr-queue --json
[
  {
  }
]

% git hub pr-queue --json -c 3
[
/.../git-hub/lib/git-hub.d/json-setup.bash: line 85: ((: i <= incomplete_results   false: syntax error in expression (error token is "false")
]

Also, -c is ignored in the curl request when used with --json; you always get the full list. Is this intended?

ingydotnet commented 8 years ago

Applied. Pushed. Thanks! \o/