Kentzo/git-archive-all

Excluding directories does not work like git archive

Gustry opened this issue · 2 comments

I have this .gitattributes file as an example:

.github export-ignore
Makefile export-ignore
test export-ignore

.github and test are folders.

If I run:

  • git archive --format zip --prefix lizmap/ HEAD -o lizmap.zip, it works well. The .github folder is skipped from the archive.
  • git-archive-all --prefix=lizmap/ lizmap.zip does not work. I have .github, test etc in the archive.

In both cases, the makefile is skipped because it's a file.

I think the behavior should be the same.
What is the syntax to exclude directories with git-archive-all?

Thanks

Duplicate of #78

@Gustry Please check the issue-78 branch.