diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-02-19 01:31:37 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-02-19 01:31:37 -0800 |
commit | 7c0be4da5cab4efd89ee6583f7009d648a75a725 (patch) | |
tree | 7bfea83cf2468f66a8f0ab4aa53f92cc75c241ae /dir.c | |
parent | 738820a913d05427b6c86d227aafd2bac7cd38d1 (diff) | |
parent | 3fc0d131c573f6f774e2e4abba9cbda694b08321 (diff) | |
download | git-7c0be4da5cab4efd89ee6583f7009d648a75a725.tar.gz |
Merge branch 'jk/maint-rmdir-fix' into maint
* jk/maint-rmdir-fix:
rm: fix bug in recursive subdirectory removal
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1044,7 +1044,7 @@ int remove_path(const char *name) slash = dirs + (slash - name); do { *slash = '\0'; - } while (rmdir(dirs) && (slash = strrchr(dirs, '/'))); + } while (rmdir(dirs) == 0 && (slash = strrchr(dirs, '/'))); free(dirs); } return 0; |