From: Christian Couder Date: Sun, 1 Oct 2006 12:36:49 +0000 (+0200) Subject: Fix a remove_empty_dir_recursive problem. X-Git-Tag: v1.4.4-rc1~44^2~19 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=28bed6ea2198f6589ad43e48666906a879839442;p=git.git Fix a remove_empty_dir_recursive problem. Signed-off-by: Christian Couder Signed-off-by: Junio C Hamano --- diff --git a/refs.c b/refs.c index 858c53445..221eb3896 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 */