1. 20 10月, 2014 1 次提交
  2. 30 7月, 2014 1 次提交
  3. 28 7月, 2014 1 次提交
  4. 16 7月, 2014 1 次提交
  5. 18 5月, 2014 3 次提交
    • M
      Don't re-wrap default pull request message taken from commit · 8a8ee07d
      Mislav Marohnić 提交于
      Re-wrapping to 78 chars was dangerous since it could lead to moving
      a #-reference to the beginning of a line which would then get
      interpreted as a comment.
      
      Wrapping pull request message is not useful anyway since it's Markdown.
      For best results when rendered, users should unwrap their text.
      
      Fixes #548, closes #570
      8a8ee07d
    • M
      Respect git "core.commentchar" setting · 1570fec3
      Mislav Marohnić 提交于
      The comment char is read from git config if it exists, but defaults to
      "#" as before.
      
      Fixes #530
      1570fec3
    • M
      Fix "invalid byte sequence" errors in `pull-request` · ea0103fb
      Mislav Marohnić 提交于
      If the user's `LANG` environment variable doesn't include "UTF-8", the
      default external encoding in Ruby will be US-ASCII and as such, string
      operations will fail dealing with pull request message or changelog that
      contains non-ASCII characters.
      
      This explicitly configures external encoding in hub to default to "UTF-8".
      This applies to data over ARGV, `$stdin.read`, and reading files.
      
      Fixes #566
      ea0103fb
  6. 15 4月, 2014 1 次提交
  7. 03 3月, 2014 1 次提交
  8. 01 3月, 2014 1 次提交
  9. 27 2月, 2014 1 次提交
  10. 22 2月, 2014 1 次提交
  11. 19 1月, 2014 1 次提交
  12. 26 12月, 2013 1 次提交
    • M
      Fix Ruby 1.8 failure with missing stderr in Cucumber test · bb73ac1d
      Mislav Marohnić 提交于
      In cukes, we use Aruba which uses ChildProcess to handle spawning of hub
      processes in tests. It uses Tempfile to create file descriptors with
      which stdout and stderr streams are collected from the child process.
      
      However, when hub finished with an `exec`, the stderr in one test would
      be mysteriously blank in Ruby 1.8. I tracked that down to being an issue
      of Ruby not flushing STDERR output to the stream (really a Tempfile in
      the context of tests). https://travis-ci.org/github/hub/jobs/15965636
      
      This hopes to fix the tests, but shouldn't change anything about how hub
      operates normally when invoked directly.
      bb73ac1d
  13. 22 12月, 2013 3 次提交
    • M
      Improve detecting of origin remote and remote branch · 06999d90
      Mislav Marohnić 提交于
      In hub lingo, "origin remote" is the remote pointing to the canonical
      GitHub project, i.e. where pull requests should be sent. "Remote branch"
      is where hub guesses the user has pushed their changes from the current
      local branch.
      
      The origin remote can now be called "upstream", "github", or "origin",
      in that order of precedence.
      
      The `browse`, `compare`, and especially `pull-request` commands need to
      know the remote branch. Previously we relied on git upstream
      configuration, but that wasn't enough. This behavior is now only kept if
      git "push.default" is set to "upstream" or "tracking".
      
      For "push.default" values "current", "simple" (git 2.0 default), or
      "matching" (git 1.x default), we can safely assume that the user
      probably pushes to the same-named branches on some remote, and we ignore
      upstream configuration.
      
      To find the remote where the user pushed their changes, we search for
      the same-named branch on:
      
      1. the remote which points to a GitHub project owned by the current user;
      2. "origin", "github", and "upstream" remotes.
      
      When a match is found, it is assumed that the user pushed there and it
      is taken as the implicit pull-request head.
      
      Fixes #158, fixes #360, fixes #381
      06999d90
    • M
      Deprecate converting issue to pull-request · 4f70dd12
      Mislav Marohnić 提交于
      This feature is likely to get dropped from GitHub API in the near
      future. The alternative is to simply create a new pull-request and
      reference the original issue in the description.
      4f70dd12
    • M
      Remove duplicate cukes · 5e130ac0
      Mislav Marohnić 提交于
      5e130ac0
  14. 29 9月, 2013 1 次提交
  15. 17 7月, 2013 1 次提交
    • M
      pull-request: detect default branch for project · e645f9aa
      Mislav Marohnić 提交于
      This is usually "master" but for e.g. git-flow projects it's "develop".
      GitHub has an API field for the default branch but I avoided having to
      hit the API and instead read from the "head" of the origin remote.
      
        git rev-parse --symbolic-full-name origin
        #=> refs/remotes/origin/develop
      
      The "head" of the remote seems to be set at clone time by default, and
      can be manually set with:
      
        git remote set-head origin develop
      
      The pull-request command now detects this and sets the default branch as
      the pull request base instead of always assuming "master" at origin.
      
      Fixes #154, closes #326
      e645f9aa
  16. 26 6月, 2013 1 次提交
    • M
      don't reuse outdated pull request messages · 0a1b13eb
      Mislav Marohnić 提交于
      Prior to a53f0289, hub didn't clean up PULLREQ_EDITMSG files after a successful
      pull request. When people upgrade to the new version of hub which reuses PR
      messages, these leftover files will get reused when opening new PRs and will
      lead to confusion. The hackish solution is to ignore PULLREQ_EDITMSG files that
      are older than the hub ruby script on disk.
      0a1b13eb
  17. 26 5月, 2013 1 次提交
  18. 14 5月, 2013 1 次提交
  19. 13 5月, 2013 2 次提交
  20. 12 5月, 2013 1 次提交
    • M
      improve preserving message from failed pull request · a53f0289
      Mislav Marohnić 提交于
       - If text editor aborts, message is discarded.
       - If the API request to create the PR fails, message is kept.
       - If the API request succeeds, message is discarded.
       - When kept message is reused for subsequent PR, only its title and
         body get inserted. The PR instructions and changelog still get
         regenerated.
      
      Fixes #178
      a53f0289
  21. 25 4月, 2013 1 次提交
  22. 25 3月, 2013 1 次提交
  23. 08 2月, 2013 1 次提交
  24. 06 11月, 2012 2 次提交
  25. 10 10月, 2012 1 次提交
    • M
      read remotes URLs with `remote -v` instead of git-config · 595b53c3
      Mislav Marohnić 提交于
      When reading config, "insteadOf" substitution rules aren't applied.
      Using `git remote -v` is better because it reports the URLs that would
      actually be used by git.
      
      This reverts the feature that supports detecting the GitHub URL among
      multiple others made for #59. If you have multiple URLs configured for
      the same remote, put the GitHub one first and you'll be fine.
      
      Fixes #241
      595b53c3