1. 24 2月, 2019 2 次提交
    • M
      [test] Fix `git fetch` stub · 7a4c893a
      Mislav Marohnić 提交于
      7a4c893a
    • M
      [checkout] Make it work independently of remote refspec · 5d42f7db
      Mislav Marohnić 提交于
      This fixes:
      
          fatal: Cannot setup tracking information; starting point 'BRANCH' is not a branch.
      
      if the remote refspec is set up to only fetch specific branches and NOT
      like the default `+refs/heads/*:refs/remotes/origin/*`.
      
      I don't understand why would git, after fetching into
      `refs/remotes/origin/BRANCH`, complain that `origin/BRANCH` is not a
      branch, but there we have it. Setting up upstream tracking manually
      works around this problem.
      5d42f7db
  2. 18 2月, 2019 1 次提交
  3. 13 2月, 2019 2 次提交
  4. 09 2月, 2019 1 次提交
  5. 07 2月, 2019 2 次提交
  6. 30 1月, 2019 2 次提交
  7. 28 1月, 2019 3 次提交
  8. 27 1月, 2019 1 次提交
    • M
      [release] Fix uploading release assets · 52d13008
      Mislav Marohnić 提交于
      Allows sending `api.github.com` OAuth token to all `*.github.com`
      subdomains. In case `git.my.org` is an Enterprise instance, this allows
      sending the token to `git.my.org` and all of `*.git.my.org`.
      52d13008
  9. 26 1月, 2019 3 次提交
  10. 25 1月, 2019 6 次提交
  11. 18 1月, 2019 4 次提交
  12. 03 1月, 2019 1 次提交
  13. 29 12月, 2018 1 次提交
  14. 28 12月, 2018 5 次提交
    • M
      Un-deprecate converting issues to pull requests · 2a748a04
      Mislav Marohnić 提交于
      5 years ago, in anticipation of an API change, I have made the call to
      deprecate issue-to-PR conversion in hub. 4f70dd12
      
      Issue-to-PR conversion was wonky at those times, poorly understood, and
      was generating a lot of support requests to hub's issue tracker that I
      didn't want to deal with. In most cases, people tried to convert issues
      that they have no rights over and they would get a cryptic validation
      error in the API response.
      
      Since then, there was a consistent plea from the hub community to keep
      this feature as some teams seem to rely on this for their workflows. I
      have consulted with other GitHub employees about the stableness of this
      feature, and anecdotal evidence suggests that lately there haven't been
      as many problems around this as there have been in the past. Also, the
      GitHub API v3 will not be getting breaking changes, so it sounds like
      this feature is here to stay.
      
      Fixes #1927
      Ref. #532, #410, #1806, #1770, #1628
      2a748a04
    • M
      Change `MainProject()` logic to skip over non-GitHub remotes · c5d7cb22
      Mislav Marohnić 提交于
      When running `hub pull-request` with this git remote setup:
      * origin:   `github.com/myuser/myfork`
      * github:   `github.com/owner/repo`
      * upstream: `example.com/other-repo`
      
      this error would be shown:
      
          Aborted: the origin remote doesn't point to a GitHub repository.
      
      The error is both unfortunate (the existence of "upstream" shouldn't
      have aborted the whole operation) and misleading (it wasn't the "origin"
      remote that was the problem).
      
      This changes `MainProject()` so it skips over non-GitHub remotes until
      it finds one that points to a GitHub project.
      c5d7cb22
    • M
      858e97c5
    • M
      Fix detecting default `pull-request` base branch name · c375d529
      Mislav Marohnić 提交于
      This changes the `MasterBranch()` implementation to consider upstream
      remotes that might be named differently than "origin". The new
      `DefaultBranch(remote)` function is now the preferred alternative.
      c375d529
    • M
      Improve `hub create` dealing with an existing "origin" remote · 9ac583ca
      Mislav Marohnić 提交于
      - No longer says "updating git remote", but not actually doing anything
      - Shows a helpful warning about "origin" pointing to a possibly unrelated repo
      9ac583ca
  15. 21 12月, 2018 1 次提交
  16. 18 12月, 2018 1 次提交
  17. 28 11月, 2018 2 次提交
  18. 31 10月, 2018 2 次提交