Commit 733c4f3a by Russell Belfer Committed by Vicent Marti

more examples/log.c bug fixing

parent 5a169711
......@@ -94,10 +94,10 @@ static int add_revision(struct log_state *s, const char *revstr)
if (*revstr == '^') {
revs.flags = GIT_REVPARSE_SINGLE;
hide = !hide;
if (!git_revparse_single(&revs.from, s->repo, revstr + 1))
if (git_revparse_single(&revs.from, s->repo, revstr + 1) < 0)
return -1;
} else
if (!git_revparse(&revs, s->repo, revstr))
} else if (git_revparse(&revs, s->repo, revstr) < 0)
return -1;
if ((revs.flags & GIT_REVPARSE_SINGLE) != 0)
......
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