diff options
Diffstat (limited to 'examples/network/clone.c')
-rw-r--r-- | examples/network/clone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/clone.c b/examples/network/clone.c index ce4b6aedf..bbcd2e848 100644 --- a/examples/network/clone.c +++ b/examples/network/clone.c @@ -104,7 +104,7 @@ int do_clone(git_repository *repo, int argc, char **argv) error = git_clone(&cloned_repo, url, path, &clone_opts); printf("\n"); if (error != 0) { - const git_error *err = giterr_last(); + const git_error *err = git_error_last(); if (err) printf("ERROR %d: %s\n", err->klass, err->message); else printf("ERROR %d: no detailed info\n", error); } |