Use git archive instead of tar --exclude
I propose this change because tar doesn't always support --exclude (GNU tar and FreeBSD tar do support it, but OpenBSD's tar doesn't). I think it is better to use git archive anyway, because it will also ignore all the other stuff that is in .gitignore.