summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorChristian Couder <chriscool@tuxfamily.org>2006-10-01 12:36:49 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-10-01 15:41:58 (GMT)
commit28bed6ea2198f6589ad43e48666906a879839442 (patch)
tree3dca2c2fc1cd384ebfcd600a89a042fdc62c81fb /refs.c
parent2eaf22242f61b13c38c87cbb0e84c84974c52d66 (diff)
downloadgit-28bed6ea2198f6589ad43e48666906a879839442.zip
git-28bed6ea2198f6589ad43e48666906a879839442.tar.gz
git-28bed6ea2198f6589ad43e48666906a879839442.tar.bz2
Fix a remove_empty_dir_recursive problem.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c2
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(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 */