Skip to content

Commit 10ca1f7

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 156b212 + 96febf9 commit 10ca1f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sha1_file.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3473,12 +3473,12 @@ static int for_each_file_in_obj_subdir(int subdir_nr,
34733473
break;
34743474
}
34753475
}
3476-
strbuf_setlen(path, baselen);
3476+
closedir(dir);
34773477

3478+
strbuf_setlen(path, baselen);
34783479
if (!r && subdir_cb)
34793480
r = subdir_cb(subdir_nr, path->buf, data);
34803481

3481-
closedir(dir);
34823482
return r;
34833483
}
34843484

0 commit comments

Comments
 (0)