Closed wuhuizuo closed 2 years ago
Thanks for bringing this up.
It seems that FilePath, which is used to create the tar archive, has default excludes (see https://ant.apache.org/manual/dirtasks.html#defaultexcludes) and .git is one of them. I'm not sure why, maybe because of sensitive data. We could disable the default excludes if the filter is set (e.g. */). I will create a PR and then we will see.
I'm still not sure about the final solution. Maybe it makes more sense to have includes
and excludes
as separate parameters and if excludes
are not defined then the default excludes are used instead.
Any concerns/opinions?
@wuhuizuo It should be working now if you define a filter like **/*
. BTW, what is your opinion about having includes
and excludes
as separate parameters?
I like it. glob may be high level, special file can exclude by excludes
options. I think includes
conflicts with filter
.
I suggest filter support array to contain more glob patterns.
I want using the plugin to cache git checkout speed, but I found it not store
.git
.restore from cache object: