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) ...@@ -195,7 +195,7 @@ int lg2_checkout(git_repository *repo, int argc, char **argv)
fprintf(stderr, "unhandled\n"); fprintf(stderr, "unhandled\n");
err = -1; err = -1;
goto cleanup; goto cleanup;
} else if (strcmp("--", args.argv[args.pos])) { } else if (!strcmp("--", args.argv[args.pos])) {
/** /**
* Try to checkout the given path * 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