dist: only exclude actual git files
Instead of excluding all files starting with .git, meson dist now only excludes files really used by git
@@ -56,7 +56,9 @@ def create_hash(fname):
def del_gitfiles(dirname):
+ gitfiles = ('.git', '.gitattributes', '.gitignore', '.gitmodules')
for f in glob(os.path.join(dirname, '.git*')):
+ if os.path.split(f)[1] in gitfiles:
if os.path.isdir(f) and not os.path.islink(f):
windows_proof_rmtree(f)
else:
