mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-19 10:03:40 +00:00
Fix fsck crash when failed to find available commit (#627)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
@@ -582,7 +582,7 @@ out:
|
|||||||
}
|
}
|
||||||
g_list_free (commit_list);
|
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",
|
seaf_warning("No available commits found for repo %.8s, can't be repaired.\n",
|
||||||
repo_id);
|
repo_id);
|
||||||
seaf_repo_unref (repo);
|
seaf_repo_unref (repo);
|
||||||
|
Reference in New Issue
Block a user