diff options
author | Patrick Steinhardt <ps@pks.im> | 2019-08-01 17:45:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-01 17:45:14 +0200 |
commit | ac171542a6d2e6ad39f2e778c4ca26604b187d04 (patch) | |
tree | 48e656bb27436372b0b18a2b12f36264e2ccf801 /examples | |
parent | 8f7fd981a6d61cc7622afb08c3d01ba3b4e2b487 (diff) | |
parent | ed387d4af62b0425d066db0944bb0686b8c57a74 (diff) | |
download | libgit2-ac171542a6d2e6ad39f2e778c4ca26604b187d04.tar.gz |
Merge pull request #5184 from novalis/fix-example
Fix example checkout to forbid rather than require --
Diffstat (limited to 'examples')
-rw-r--r-- | examples/checkout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/checkout.c b/examples/checkout.c index 577a6f124..d552eece8 100644 --- a/examples/checkout.c +++ b/examples/checkout.c @@ -195,7 +195,7 @@ int lg2_checkout(git_repository *repo, int argc, char **argv) fprintf(stderr, "unhandled\n"); err = -1; goto cleanup; - } else if (strcmp("--", args.argv[args.pos])) { + } else if (!strcmp("--", args.argv[args.pos])) { /** * Try to checkout the given path */ |