1
0
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 ()

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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);