summaryrefslogtreecommitdiff
path: root/examples/network/ls-remote.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-05-03 20:25:56 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-05-08 21:36:40 +0200
commitbaaa8a447ed6da152038770805464485d5d7bb21 (patch)
treee8e9a43b92d031153a4e8a2df21e51c6b945512b /examples/network/ls-remote.c
parenta209a025c642498f1fa1aecf91ce9e9504d0d419 (diff)
downloadlibgit2-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/ls-remote.c')
-rw-r--r--examples/network/ls-remote.c2
1 files changed, 1 insertions, 1 deletions
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;