projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eaf222
)
Fix a remove_empty_dir_recursive problem.
author
Christian Couder
<chriscool@tuxfamily.org>
Sun, 1 Oct 2006 12:36:49 +0000
(14:36 +0200)
committer
Junio C Hamano
<junkio@cox.net>
Sun, 1 Oct 2006 15:41:58 +0000
(08:41 -0700)
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
refs.c
patch
|
blob
|
history
diff --git
a/refs.c
b/refs.c
index 858c53445c01fc0ed0db2affc99ddf9b9c319e19..221eb3896ed10ff75b86ae955454636dd70f71c6 100644
(file)
--- a/
refs.c
+++ b/
refs.c
@@
-498,7
+498,7
@@
static int remove_empty_dir_recursive(char *path, int len)
strcpy(path + len, e->d_name) &&
!lstat(path, &st) &&
S_ISDIR(st.st_mode) &&
- remove_empty_dir_recursive(path, len + namlen))
+
!
remove_empty_dir_recursive(path, len + namlen))
continue; /* happy */
/* path too long, stat fails, or non-directory still exists */