mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-02 16:34:37 +00:00
fix bug with order args and no revision
This commit is contained in:
parent
2b3bd8ecd8
commit
5a169711fa
@ -86,9 +86,12 @@ static int add_revision(struct log_state *s, const char *revstr)
|
||||
"Could not open repository", s->repodir);
|
||||
}
|
||||
|
||||
if (!revstr)
|
||||
if (!revstr) {
|
||||
push_rev(s, NULL, hide);
|
||||
else if (*revstr == '^') {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (*revstr == '^') {
|
||||
revs.flags = GIT_REVPARSE_SINGLE;
|
||||
hide = !hide;
|
||||
if (!git_revparse_single(&revs.from, s->repo, revstr + 1))
|
||||
|
Loading…
Reference in New Issue
Block a user