diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2014-07-14 13:50:22 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-15 02:24:34 +0400 |
commit | aceb9429b37a4a36e91f9eeb60e7ba488f73604b (patch) | |
tree | 16b0e9ab9bffa98114425a5bd1934d174fe5f694 /dir.h | |
parent | 709359c85cf366df68a1cabf9d68978c05c541c5 (diff) |
prep_exclude: remove the artificial PATH_MAX limit
This fixes a segfault in git-status with long paths on Windows,
where PATH_MAX is only 260.
This also fixes the problem of silently ignoring .gitignore if the
full path exceeds PATH_MAX. Now add_excludes_from_file() will report
if it gets ENAMETOOLONG.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'dir.h')
-rw-r--r-- | dir.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -119,7 +119,7 @@ struct dir_struct { */ struct exclude_stack *exclude_stack; struct exclude *exclude; - char basebuf[PATH_MAX]; + struct strbuf basebuf; }; /* |