Unverified Commit ac171542 by Patrick Steinhardt Committed by GitHub

Merge pull request #5184 from novalis/fix-example

Fix example checkout to forbid rather than require --
parents 8f7fd981 ed387d4a
......@@ -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
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment