Skip to content

Commit 78e4839

Browse files
committed
Merge branch 'issue-231'
This branch hopefully addresses #231 where `git repack` could not delete the object directory because there was still an open handle on it. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents c52cada + 4ce55b9 commit 78e4839

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sha1_file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3503,12 +3503,12 @@ static int for_each_file_in_obj_subdir(int subdir_nr,
35033503
break;
35043504
}
35053505
}
3506-
strbuf_setlen(path, baselen);
3506+
closedir(dir);
35073507

3508+
strbuf_setlen(path, baselen);
35083509
if (!r && subdir_cb)
35093510
r = subdir_cb(subdir_nr, path->buf, data);
35103511

3511-
closedir(dir);
35123512
return r;
35133513
}
35143514

0 commit comments

Comments
 (0)