Commit ed387d4a by David Turner

Fix example checkout to forbid rather than require --

Make the example program for checkout follow git syntax, where
"--" indicates a file.  This was likely just a strcmp return
value confusion.
parent e3adc99e
......@@ -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