X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=inline;f=archive-tar.c;h=99db58f1cf21ee30f150c54acd6ffefbb14b6f57;hb=9d54ea6760cc4d7ee526d12cd00218bf19b79bf5;hp=d7598f907d9f7fb40c24c8cef815f8fc33a8b19b;hpb=2d3cfd77ad5305c132f7b23c192ae6c327443c95;p=git.git diff --git a/archive-tar.c b/archive-tar.c index d7598f907..99db58f1c 100644 --- a/archive-tar.c +++ b/archive-tar.c @@ -247,6 +247,8 @@ static int write_tar_entry(const unsigned char *sha1, strbuf_grow(&path, PATH_MAX); strbuf_add(&path, base, baselen); strbuf_addstr(&path, filename); + if (is_archive_path_ignored(path.buf + base_len)) + return 0; if (S_ISDIR(mode) || S_ISGITLINK(mode)) { strbuf_addch(&path, '/'); buffer = NULL;