tokkee.org
Code
projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
clean: unreadable directory may still be rmdir-able if it is empty
[git.git]
/
dir.c
diff --git
a/dir.c
b/dir.c
index 570b651a17520cbb0273b9247ab0fcffc0129477..aa1a7181f69c2b8e45df2cc0b95686cb0c3a73fe 100644
(file)
--- a/
dir.c
+++ b/
dir.c
@@
-1088,7
+1088,7
@@
int remove_dir_recursively(struct strbuf *path, int flag)
dir = opendir(path->buf);
if (!dir)
- return
-1
;
+ return
rmdir(path->buf)
;
if (path->buf[original_len - 1] != '/')
strbuf_addch(path, '/');