I am compressing a dir into a zip, and use several -x switches.
7z a -tzip -x!.\test1.gadget\.git\* -x!.\test1.gadget\.gitignore test1.zip .\test1.gadget\* 7-Zip  9.22 beta Copyright (c) 1999-2011 Igor Pavlov 2011-04-18 Scanning Creating archive test1.zip Compressing .git\COMMIT_EDITMSG Compressing .git\config Compressing .git\description Compressing .git\HEAD
However, instead of the ~20k I expect the zip file to be (based on the size of the desired content), the zip file is ~120k. When inspecting the zip file, none of the excluded content (the .git dir) is present.
Any ideas on what I'm doing wrong?