mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-05-13 18:45:13 +00:00
Fix fsck crash when failed to find available commit (#627)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
parent
e38774ac7e
commit
fdb51c1352
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user