* [PATCH 1/2] Fix a remove_empty_dir_recursive problem.
@ 2006-10-01 12:36 Christian Couder
0 siblings, 0 replies; only message in thread
From: Christian Couder @ 2006-10-01 12:36 UTC (permalink / raw)
To: Junio Hamano; +Cc: git
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
---
refs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/refs.c b/refs.c
index 858c534..221eb38 100644
--- a/refs.c
+++ b/refs.c
@@ -498,7 +498,7 @@ static int remove_empty_dir_recursive(ch
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 */
--
1.4.2.1.g7bc701-dirty
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2006-10-01 12:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-01 12:36 [PATCH 1/2] Fix a remove_empty_dir_recursive problem Christian Couder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).