Skip to content

Commit ab81d54

Browse files
committed
Merge branch 'issue-231'
This branch hopefully addresses git-for-windows#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 3b18bbf + c1aa08f commit ab81d54

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
@@ -3518,12 +3518,12 @@ static int for_each_file_in_obj_subdir(int subdir_nr,
35183518
break;
35193519
}
35203520
}
3521-
strbuf_setlen(path, baselen);
3521+
closedir(dir);
35223522

3523+
strbuf_setlen(path, baselen);
35233524
if (!r && subdir_cb)
35243525
r = subdir_cb(subdir_nr, path->buf, data);
35253526

3526-
closedir(dir);
35273527
return r;
35283528
}
35293529

0 commit comments

Comments
 (0)