Mislav Marohnić
796d1b5ae1
Use ArgsParser for `hub clone` extension
2019-01-17 02:39:08 +01:00
nikolas
f316e55cd8
commands/clone: fix typo in docs
2018-08-31 13:38:04 -04:00
Mislav Marohnić
54a20cf2ba
Add more documentation about git protocol to hub-clone(1)
...
Fixes #1813 [ci skip]
2018-08-23 15:53:05 +02:00
Josh Soref
6dfb3212ba
spelling: regexp
2017-11-08 02:48:11 +00:00
Mislav Marohnić
8e212d4892
Dereference repo name when cloning
...
This ensures that the final repository URL cloned will have the
repository's actual name after redirect.
2016-08-09 22:07:33 +02:00
Mislav Marohnić
fc9fbd4c38
Cross-references galore!
2016-01-25 02:50:01 +11:00
Mislav Marohnić
0a45aa8ddc
Reformat inline command help and expand usage options
2016-01-25 02:30:46 +11:00
Mislav Marohnić
c3ddec3248
Improve detecting local clone resources
...
In `hub clone NAME`, "NAME" was previously considered a local resource
if a directory of the same name existed, and the clone command was left
unchanged.
That worked for a while, but some users were surprised that they
couldn't clone their repo named "NAME", only to discover that there was
an unrelated directory "NAME" in the current working directory.
Also, a git bundle is a valid cloneable resource, but is a file and not
a directory.
This refines the detection of cloneable resources. "NAME" is considered
to be locally cloneable if one of the following is true:
- "NAME/.git" exists
- "NAME" is a bare git repo
- "NAME" is a file whose first line includes "git bundle"
2016-01-22 20:47:51 +11:00
Mislav Marohnić
0bbe55b2f6
Merge remote-tracking branch 'origin/clone-usage'
2016-01-22 01:37:26 +11:00
Keenan Brock
5355655711
rename gh command to hub in docs
2016-01-19 13:31:47 -05:00
Keenan Brock
fc197be6c0
document that clone directory is optional
2016-01-10 15:23:49 -05:00
Mislav Marohnić
93eccff35d
Check if GitHub repo exists before every `hub clone`
...
If it doesn't exist, print a more helpful error message about it so the
user knows which "owner/repo" pair was tested.
2015-09-27 22:42:49 +02:00
Jingwen Owen Ou
b3d5be4d93
Refactor to `configService` to read & write `Config`
...
`configService` can save and load `Config` using a strategy of `configEncoder` and `configDecoder`. This pave the path for swapping out `tomlConfigEncoder` and `tomlConfigDecoder` with `yamlConfigEncoder` and `yamlConfigDecoder`.
`Configs` also has been renamed to `Config`.
2014-09-14 17:46:13 -07:00
Jingwen Owen Ou
5799cebd81
Clone with noop still works
2014-07-25 16:13:10 -07:00
Jingwen Owen Ou
47a9aa9ec6
Check repository permission for clone URL
2014-04-08 07:23:02 -07:00
Jingwen Owen Ou
f054bdf54e
Return error when prompting for host.
...
This'll make sure we propagate error to the caller where we can reformat
the error message within the context.
This fixes `features/authentication.feature:85`
2014-03-27 16:42:14 -07:00
Jingwen Owen Ou
4c7a2816bb
Rename more credential* to host
2014-03-25 17:18:30 -07:00
Jingwen Owen Ou
b70cb9d7de
Rename Credential to Host
...
See comment https://github.com/github/hub/pull/515#discussion_r10915319
2014-03-25 17:01:00 -07:00
Jingwen Owen Ou
070d5e7b86
Rename Config.DefaultCredential()
2014-03-09 14:42:06 -07:00
Jingwen Owen Ou
72516fc377
Refactor to use toml for config
...
* Rename Credentials to Credential
* Use toml for config
2014-03-09 14:33:54 -07:00
Jingwen Owen Ou
498789a999
Change namespace to github/hub
2014-02-10 08:29:03 -08:00
David Calavera
371ae8b432
Add global commands to the runner.
...
- Use a hash to lookup for commands.
- Add more tests for the command and runner execution.
2013-12-29 14:18:14 -08:00
David Calavera
085a2bec83
Check the available hosts and credentials before asking for them for the default host.
2013-12-14 15:08:30 -08:00
Jingwen Owen Ou
76817bf95e
Clone is compatible with Hub
2013-12-11 00:04:30 -08:00
Jingwen Owen Ou
a613e633b0
Create is compatible with Hub
2013-12-10 13:42:54 -08:00
Jingwen Owen Ou
8f6020074a
Use transformCloneArgs for submodule implementation
2013-07-20 07:32:35 -07:00
Jingwen Owen Ou
08e1d155b2
Reuse github.MatchURL
2013-07-18 15:44:56 -07:00
Theodore Kokkoris
3d1c144236
Fixed clone to stop when it finds any url
2013-07-18 15:44:56 -07:00
Theodore Kokkoris
e7fee89c46
Fixed implicit -p
2013-07-18 15:44:56 -07:00
Theodore Kokkoris
2b547311fe
Added noop to clone
2013-07-18 15:44:56 -07:00
Theodore Kokkoris
a395b03ae3
Fixed gh clone to stop when it finds a URL that is formatted like a repository one
2013-07-18 15:44:56 -07:00
Jingwen Owen Ou
87430090a9
Enable noop
2013-07-05 11:10:24 -07:00
Jingwen Owen Ou
ccef819232
Create init stub
2013-07-04 16:29:19 -07:00
Jingwen Owen Ou
e3d6319fa5
Rename to Args#Params
2013-07-02 11:56:45 -07:00
Jingwen Owen Ou
c03d5615c2
Update README
2013-07-01 11:54:01 -07:00
Jingwen Owen Ou
2d933492d6
Fix comment in clone
2013-07-01 11:35:15 -07:00
Jingwen Owen Ou
f2c4c86473
Make sure clone repo under GH login with -p
2013-07-01 11:19:40 -07:00
Jingwen Owen Ou
2ca8986854
Add long description to `clone`
2013-07-01 11:12:49 -07:00
Jingwen Owen Ou
a2f3e80cf8
Make sure clone_test pass everywhere
2013-07-01 10:37:40 -07:00
Jingwen Owen Ou
f2ee200ba4
Implement clone
2013-07-01 10:11:02 -07:00