diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-05-16 23:08:49 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-05-16 23:08:49 -0700 |
commit | 55524fcf9d6676ca3840227092bf3a14ba404615 (patch) | |
tree | 82e8251a255c5f962f1d5dce75fd14c97cbc3ba9 /dir.c | |
parent | Merge branch 'maint' (diff) | |
parent | completion: add missing options to show-branch and show (diff) | |
download | tgif-55524fcf9d6676ca3840227092bf3a14ba404615.tar.xz |
Merge branch 'maint'
* maint:
completion: add missing options to show-branch and show
dir.c: clean up handling of 'path' parameter in read_directory_recursive()
Fix type-punning issues
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -576,7 +576,7 @@ static int get_dtype(struct dirent *de, const char *path) */ static int read_directory_recursive(struct dir_struct *dir, const char *path, const char *base, int baselen, int check_only, const struct path_simplify *simplify) { - DIR *fdir = opendir(path); + DIR *fdir = opendir(*path ? path : "."); int contents = 0; if (fdir) { |