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 17:41:58 +0200 |
commit | 28bed6ea2198f6589ad43e48666906a879839442 (patch) | |
tree | 3dca2c2fc1cd384ebfcd600a89a042fdc62c81fb /refs.c | |
parent | show-ref --hash=len, --abbrev=len, and --abbrev (diff) | |
download | git-28bed6ea2198f6589ad43e48666906a879839442.tar.xz git-28bed6ea2198f6589ad43e48666906a879839442.zip |
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 */ |