mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 15:33:51 +00:00
Merge pull request #441 from csware/ignore-missing-pack-file
ignore missing pack file
This commit is contained in:
commit
24ce105b40
@ -224,7 +224,10 @@ static int packfile_load__cb(void *_data, char *path)
|
||||
}
|
||||
|
||||
error = git_packfile_check(&pack, path);
|
||||
if (error < GIT_SUCCESS)
|
||||
if (error == GIT_ENOTFOUND) {
|
||||
/* ignore missing .pack file as git does */
|
||||
return GIT_SUCCESS;
|
||||
} else if (error < GIT_SUCCESS)
|
||||
return git__rethrow(error, "Failed to load packfile");
|
||||
|
||||
if (git_vector_insert(&backend->packs, pack) < GIT_SUCCESS) {
|
||||
|
Loading…
Reference in New Issue
Block a user