I have some strange behaviour with `Sync` task. L...
# community-support
y
I have some strange behaviour with
Sync
task. Let's say I have a
Sync
task with destination folder
build/gitPublications/main
and I have a
preserve
block with
include '.git/**
What I found is if there is no
.gradle
project cache folder present and I execute that task it will delete the
build/gitPublications/main
folder even if there is content in
build/gitPublications/main/.git
saying that
Deleting stale output file: /path/to/build/gitPublications/main
. Even if
build
folder is deleted (gradle clean). then next it will behave correctly. It is only when
.gradle
is not present. Anyone ever seen this?
l
Can you post a reproducer? If this is a bug, you may want to file a Github issue.