summaryrefslogtreecommitdiff
path: root/src/libgit2/clone.c
Commit message (Collapse)AuthorAgeFilesLines
* shallow: don't default to -1 for depthEdward Thomson2023-05-081-1/+1
| | | | | Depth of `0` should indicate full depth. Disallow negative values (they may have a future meaning) and use `0` as the default.
* Merge commit 'd066d0d95c43e97df6624292f3f527f9372ca8fe'lmcglash2023-03-101-3/+31
|\
| * clone: clean up options on failureEdward Thomson2023-02-141-1/+1
| |
| * clone: free connect optsEdward Thomson2023-02-121-0/+1
| |
| * transport: teach transports about oid types and SHA256Edward Thomson2023-02-121-1/+25
| |
| * clone: narrow success tests on HEAD-less remotesEdward Thomson2022-09-191-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | Only allow the remote default branch checking to fail when the remote default branch doesn't exist (`git_remote__default_branch` returns `GIT_ENOTFOUND`). If there was any other type of error - for example, an allocation failure - we should not swallow that and continue to fail. This allows us to support the case when a remote has not advertised a HEAD -- this is possible, for example, when the remote has constrained the caller to a particular namespace. But other remote failures remain as failures.
| * Don't fail the whole clone if you can't find a default branchLinus Torvalds2022-07-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 6bb358786 ("clone: set refs/remotes/origin/HEAD to default branch when branch is specified, attempt 2") libgit2 was changed to set the default remote branch when one was copied. But it makes update_head_to_branch() return an error if the origin doesn't even *have* a HEAD in the first place, since git_remote_default_branch() will fail. That's entirely wrong, and means that you cannot do "git_clone()" of a particular branch on a remote repository when that remote doesn't have a default branch at all. So don't set the error code. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
* | support fetch unshallow option on shallow reposyuangli2022-08-091-6/+1
| |
* | fix build warningyuangli2022-08-021-1/+1
| |
* | refactor git_fetch_option.depth and usageyuangli2022-08-021-1/+8
| |
* | remove build errorsyuangli2022-07-291-1/+1
| |
* | Merge branch 'transportPR' into shallow-clone-networkyuangli2022-07-291-2/+3
|/
* refactor: `src` is now `src/libgit2`Edward Thomson2022-02-221-0/+655