зеркало из https://github.com/mislav/hub.git
c3ddec3248
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" |
||
---|---|---|
.. | ||
cmd.go | ||
cmd_test.go |