diff options
| author | Vicent Martà <tanoku@gmail.com> | 2012-05-18 13:53:38 -0700 |
|---|---|---|
| committer | Vicent Martà <tanoku@gmail.com> | 2012-05-18 13:53:38 -0700 |
| commit | 59d91979d87b8d355696a943f562eb326cee6c38 (patch) | |
| tree | 4b76f8371ecb965d3d40423166c73e22db19e272 /examples/network/git2.c | |
| parent | 498b72eb6fdc8b34c1d52b6bb09ba8a198f86666 (diff) | |
| parent | 904b67e69fa15b7a3246e43b3d78645ffa2331f6 (diff) | |
| download | libgit2-59d91979d87b8d355696a943f562eb326cee6c38.tar.gz | |
Merge pull request #710 from libgit2/breaking-changes
Break everything before the release
Diffstat (limited to 'examples/network/git2.c')
| -rw-r--r-- | examples/network/git2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/git2.c b/examples/network/git2.c index d6ea419c4..7c02305c4 100644 --- a/examples/network/git2.c +++ b/examples/network/git2.c @@ -25,12 +25,12 @@ int run_command(git_cb fn, int argc, char **argv) // repository and pass it to the function. error = git_repository_open(&repo, ".git"); - if (error < GIT_SUCCESS) + if (error < 0) repo = NULL; // Run the command. If something goes wrong, print the error message to stderr error = fn(repo, argc, argv); - if (error < GIT_SUCCESS) { + if (error < 0) { if (giterr_last() == NULL) fprintf(stderr, "Error without message"); else |
