diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-02-25 08:27:09 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-02-25 08:27:09 -0800 |
commit | ef94636a4def20453a6552c278a27820f2ccf79b (patch) | |
tree | 7a6479cb19722d0b6a19a63f5689e0f314dd6e15 /builtin | |
parent | a2b109f27575a8b05a627b7e6842bd81a62ba991 (diff) | |
parent | c19387e79947de9307af06ce92a83eaf786153b7 (diff) | |
download | git-ef94636a4def20453a6552c278a27820f2ccf79b.tar.gz |
Merge branch 'as/check-ignore'
"git check-ignore ." segfaulted, as a function it calls deep in its
callchain took a string in the <ptr, length> form but did not stop
when given an empty string.
* as/check-ignore:
name-hash: allow hashing an empty string
t0008: document test_expect_success_multi
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/check-ignore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/check-ignore.c b/builtin/check-ignore.c index 709535ce09..0240f99b57 100644 --- a/builtin/check-ignore.c +++ b/builtin/check-ignore.c @@ -89,7 +89,7 @@ static int check_ignore(const char *prefix, const char **pathspec) ? strlen(prefix) : 0, path); full_path = check_path_for_gitlink(full_path); die_if_path_beyond_symlink(full_path, prefix); - if (!seen[i] && path[0]) { + if (!seen[i]) { exclude = last_exclude_matching_path(&check, full_path, -1, &dtype); if (exclude) { |