- 22 1月, 2016 3 次提交
-
-
由 Mislav Marohnić 提交于
Detect current username without resorting to cgo
-
由 Mislav Marohnić 提交于
Sometimes when hub is cross-compiled, `user.Current()` won't work on certain systems. Use an alternative way of obtaining the user's home directory.
-
由 Mislav Marohnić 提交于
-
- 21 1月, 2016 6 次提交
-
-
由 Mislav Marohnić 提交于
-
由 Mislav Marohnić 提交于
-
由 Mislav Marohnić 提交于
- git+ssh://github.com/... - ssh://github.com:22/... - git@github.com:/... Fixes #876
-
由 Mislav Marohnić 提交于
-
由 Mislav Marohnić 提交于
-
由 Rex Schrader 提交于
In instances where the `SHELL` environment variable is not set, nor is the `-s` parameter set it is not clear what action should occur. Clarify the error message to make it obvious. Closes #1065 Untested.
-
- 20 1月, 2016 9 次提交
-
-
由 Mislav Marohnić 提交于
-
由 Mislav Marohnić 提交于
-
由 Mislav Marohnić 提交于
-
由 Mislav Marohnić 提交于
-
由 Mislav Marohnić 提交于
-
由 Mislav Marohnić 提交于
Fixes #896
-
由 Mislav Marohnić 提交于
Fixes #1057
-
由 Mislav Marohnić 提交于
rename gh command to hub in docs
-
由 Keenan Brock 提交于
-
- 19 1月, 2016 1 次提交
-
-
由 Mislav Marohnić 提交于
document that clone directory is optional
-
- 11 1月, 2016 1 次提交
-
-
由 Keenan Brock 提交于
-
- 08 12月, 2015 2 次提交
-
-
由 Mislav Marohnić 提交于
commands/fork: handle missing "origin" remote
-
由 Parker Moore 提交于
-
- 06 12月, 2015 1 次提交
-
-
由 Parker Moore 提交于
-
- 04 12月, 2015 1 次提交
-
-
由 Parker Moore 提交于
Fixes nil reference crash. Fixes #1042.
-
- 04 11月, 2015 2 次提交
-
-
由 Mislav Marohnić 提交于
Cache result of `git rev-parse --git-dir`
-
由 Mislav Marohnić 提交于
Another attempt at fixing pull-request command for fetch-only remotes. References #876
-
- 03 11月, 2015 3 次提交
-
-
由 Madhusudan.C.S 提交于
It is a common practice to set the push URL of the "upstream" repository to an invalid URL to avoid accidentally pushing to upstream instead of a fork. The trouble with the current approach of obtaining remote URLs is that, the URL obtained for a remote might not be the valid one, even though a valid remote fetch URL exists. For example, git remote -v might return the following output ~$ git remote -v origin https://github.com/owner/project.git (fetch) origin https://github.com/owner/project.git (push) upstream https://github.com/main/project.git (fetch) upstream no_push (push) But github.Remotes() currently parses both these URLs but stores only one of them, the one that comes the last in git remote -v output, for a given remote. So in this example, the URL for upstream remote might end up to be "no_push" instead of https://github.com/main/project.git. This causes problems downstream. For example, pull-request can't proceed with non github.com URLs and the command fails even when a valid fetch URL for upstream is defined. This commit fixes the problem by parsing and storing both fetch and push URLs for each remote. So later, wherever the URLs are required, we can either look at fetch URL or push URL or both depending on what is required. Fixes one part of issue #876. Still doesn't recognize "git+ssh" protocol scheme.
-
由 Madhusudan.C.S 提交于
-
由 Madhusudan.C.S 提交于
Also, define AddRemote() method for test Repo fixture.
-
- 01 11月, 2015 1 次提交
-
-
由 Mislav Marohnić 提交于
It's invoked often from different methods, but always has the same results. Cache it after the 1st run so subsequent runs are no-ops. Before: HUB_VERBOSE=1 git browse $ git config alias.browse $ git rev-parse -q --git-dir $ git rev-parse -q --git-dir $ git remote -v $ git rev-parse -q --git-dir $ git config hub.host $ git rev-parse -q --git-dir $ git config push.default $ git rev-parse -q --git-path refs/remotes/origin/no-angular $ git rev-parse -q --git-dir $ git rev-parse -q --git-dir $ git rev-parse -q --git-dir After (6 fewer invocations): HUB_VERBOSE=1 git browse $ git config alias.browse $ git rev-parse -q --git-dir $ git remote -v $ git config hub.host $ git config push.default $ git rev-parse -q --git-path refs/remotes/origin/no-angular
-
- 31 10月, 2015 6 次提交
-
-
由 Mislav Marohnić 提交于
[ci skip]
-
由 Mislav Marohnić 提交于
Have `HUB_VERBOSE` also log externally run commands
-
由 Mislav Marohnić 提交于
Properly support `-C` git global flag
-
由 Mislav Marohnić 提交于
-
由 Mislav Marohnić 提交于
-
由 Mislav Marohnić 提交于
From git documentation: -C <path> : Run as if git was started in <path> instead of the current working directory. When multiple -C options are given, each subsequent non-absolute -C <path> is interpreted relative to the preceding -C <path>. We correctly forwarded the `-C <path>` values as git global flags to git invocations such as `git rev-parse --git-dir`, but that command is designed to return the result as a relative path to the value computed from `-C`. This adds an extra step to transform this relative path to an absolute one by applying values of `-C` as the base directory.
-
- 23 10月, 2015 1 次提交
-
-
由 Mislav Marohnić 提交于
Fixes #1015, broken after #861 [ci skip]
-
- 20 10月, 2015 1 次提交
-
-
由 Mislav Marohnić 提交于
Add installation instructions for zsh tab-completion
-
- 18 10月, 2015 1 次提交
-
-
由 Heitor Tashiro Sergent 提交于
Also removed instructions and references to set up git auto-completion.
-
- 14 10月, 2015 1 次提交
-
-
由 Heitor Tashiro Sergent 提交于
-