Skip to content

Commit b83c4e4

Browse files
neerajsi-msftdscho
authored andcommitted
fixup! tmp-objdir: new API for creating temporary writable databases
Fix prune code to be able to delete multiple object directories. I wasn't properly resetting the strbuf with the path. Signed-off-by: Neeraj Singh <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 64204c8 commit b83c4e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/prune.c

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ static int prune_tmp_file(const char *fullpath)
3232
if (show_only || verbose)
3333
printf("Removing stale temporary directory %s\n", fullpath);
3434
if (!show_only) {
35+
strbuf_reset(&remove_dir_buf);
3536
strbuf_addstr(&remove_dir_buf, fullpath);
3637
remove_dir_recursively(&remove_dir_buf, 0);
3738
}

0 commit comments

Comments
 (0)