diff options
author | Christian Couder <chriscool@tuxfamily.org> | 2006-10-01 14:36:49 +0200 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-10-01 08:41:58 -0700 |
commit | 28bed6ea2198f6589ad43e48666906a879839442 (patch) | |
tree | 3dca2c2fc1cd384ebfcd600a89a042fdc62c81fb /refs.c | |
parent | 2eaf22242f61b13c38c87cbb0e84c84974c52d66 (diff) | |
download | git-28bed6ea2198f6589ad43e48666906a879839442.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |