summaryrefslogtreecommitdiff
path: root/examples/network/ls-remote.c
diff options
context:
space:
mode:
authorBen Straub <bs@github.com>2012-11-27 13:15:43 -0800
committerBen Straub <bs@github.com>2012-11-27 13:19:49 -0800
commitdf705148ecc0d0a4c78f7a3b0903527918e38149 (patch)
tree89d5d71d0b2fc45182a884e4aa64a7b4338d7f7d /examples/network/ls-remote.c
parent74f9132212a1c634c45241852dbd8564427e964b (diff)
downloadlibgit2-df705148ecc0d0a4c78f7a3b0903527918e38149.tar.gz
API updates for remote.h
Includes typedef for git_direction, and renames for GIT_DIR_[FETCH|PUSH] to GIT_DIRECTION_(\1).
Diffstat (limited to 'examples/network/ls-remote.c')
-rw-r--r--examples/network/ls-remote.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/ls-remote.c b/examples/network/ls-remote.c
index 822d6f668..62131d4ba 100644
--- a/examples/network/ls-remote.c
+++ b/examples/network/ls-remote.c
@@ -27,7 +27,7 @@ static int use_unnamed(git_repository *repo, const char *url)
// When connecting, the underlying code needs to know wether we
// want to push or fetch
- error = git_remote_connect(remote, GIT_DIR_FETCH);
+ error = git_remote_connect(remote, GIT_DIRECTION_FETCH);
if (error < 0)
goto cleanup;
@@ -49,7 +49,7 @@ static int use_remote(git_repository *repo, char *name)
if (error < 0)
goto cleanup;
- error = git_remote_connect(remote, GIT_DIR_FETCH);
+ error = git_remote_connect(remote, GIT_DIRECTION_FETCH);
if (error < 0)
goto cleanup;