diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-05-03 23:27:15 -0700 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-05-03 23:27:15 -0700 |
commit | 5f8af1bcac3d982adf0bc37a0868e420161dc761 (patch) | |
tree | da738a93013dcd6c92e9249385b72956b5b1a74b /examples | |
parent | 3fd99be98a91416dae77d65fe593965a0723fa8c (diff) | |
parent | 8e210931ca5d57b6ca7bc16b41598faa9339bc09 (diff) | |
download | libgit2-new-error-handling.tar.gz |
Merge pull request #662 from carlosmn/remotesnew-error-handling
Add git_remote_add()
Diffstat (limited to 'examples')
-rw-r--r-- | examples/network/fetch.c | 2 | ||||
-rw-r--r-- | examples/network/ls-remote.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/fetch.c b/examples/network/fetch.c index 23046bd09..f4a044984 100644 --- a/examples/network/fetch.c +++ b/examples/network/fetch.c @@ -69,7 +69,7 @@ int fetch(git_repository *repo, int argc, char **argv) // Figure out whether it's a named remote or a URL printf("Fetching %s\n", argv[1]); if (git_remote_load(&remote, repo, argv[1]) < 0) { - if (git_remote_new(&remote, repo, argv[1], NULL) < 0) + if (git_remote_new(&remote, repo, NULL, argv[1], NULL) < 0) return -1; } diff --git a/examples/network/ls-remote.c b/examples/network/ls-remote.c index 02d432e8b..958a88651 100644 --- a/examples/network/ls-remote.c +++ b/examples/network/ls-remote.c @@ -19,7 +19,7 @@ int use_unnamed(git_repository *repo, const char *url) // Create an instance of a remote from the URL. The transport to use // is detected from the URL - error = git_remote_new(&remote, repo, url, NULL); + error = git_remote_new(&remote, repo, NULL, url, NULL); if (error < GIT_SUCCESS) goto cleanup; |