1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-16 07:10:07 +00:00

Return one more commit when get repo history (#603)

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
feiniks
2023-03-11 11:54:50 +08:00
committed by GitHub
parent 7566f6f60e
commit d38c212ba1

View File

@@ -396,8 +396,12 @@ get_commit (SeafCommit *c, void *data, gboolean *stop)
(gint64)(c->ctime) <= cp->truncate_time &&
cp->traversed_head)
{
/* Still traverse the first commit older than truncate_time.
* If a file in the child commit of this commit is deleted,
* we need to access this commit in order to restore it
* from trash.
*/
*stop = TRUE;
return TRUE;
}
/* Always traverse the head commit. */