summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-02-25 16:27:09 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-02-25 16:27:09 (GMT)
commitef94636a4def20453a6552c278a27820f2ccf79b (patch)
tree7a6479cb19722d0b6a19a63f5689e0f314dd6e15 /builtin
parenta2b109f27575a8b05a627b7e6842bd81a62ba991 (diff)
parentc19387e79947de9307af06ce92a83eaf786153b7 (diff)
downloadgit-ef94636a4def20453a6552c278a27820f2ccf79b.zip
git-ef94636a4def20453a6552c278a27820f2ccf79b.tar.gz
git-ef94636a4def20453a6552c278a27820f2ccf79b.tar.bz2
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/check-ignore.c b/builtin/check-ignore.c
index 709535c..0240f99 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) {