1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-18 08:15:14 +00:00

Fix fsck crash when failed to find available commit (#627)

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
feiniks
2023-07-25 10:37:19 +08:00
committed by GitHub
parent e38774ac7e
commit fdb51c1352

View File

@@ -582,7 +582,7 @@ out:
}
g_list_free (commit_list);
if (!repo->head) {
if (!repo || !repo->head) {
seaf_warning("No available commits found for repo %.8s, can't be repaired.\n",
repo_id);
seaf_repo_unref (repo);