vendor/libgit2/src/odb_pack.c in rugged-0.24.6.1 vs vendor/libgit2/src/odb_pack.c in rugged-0.25.0b1
- old
+ new
@@ -589,9 +589,12 @@
{
int error = 0;
struct pack_backend *backend = NULL;
git_buf path = GIT_BUF_INIT;
+ if (git_mwindow_files_init() < 0)
+ return -1;
+
if (pack_backend__alloc(&backend, 8) < 0)
return -1;
if (!(error = git_buf_joinpath(&path, objects_dir, "pack")) &&
git_path_isdir(git_buf_cstr(&path)))