diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-05-03 20:25:56 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-05-08 21:36:40 +0200 |
| commit | baaa8a447ed6da152038770805464485d5d7bb21 (patch) | |
| tree | e8e9a43b92d031153a4e8a2df21e51c6b945512b /examples/network/fetch.c | |
| parent | a209a025c642498f1fa1aecf91ce9e9504d0d419 (diff) | |
| download | libgit2-baaa8a447ed6da152038770805464485d5d7bb21.tar.gz | |
remotes: change git_remote_new's signature
Add a fetch refspec arguemnt and make the arguments (name, url,
refspec), as that order makes more sense.
Diffstat (limited to 'examples/network/fetch.c')
| -rw-r--r-- | examples/network/fetch.c | 2 |
1 files changed, 1 insertions, 1 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; } |
