# ExternalProject: avoid triggering Git "clean" filter with UPDATE\_COMMAND

**URL:** https://discourse.cmake.org/t/externalproject-avoid-triggering-git-clean-filter-with-update-command/8662
**Category:** Code
**Created:** [August 2, 2023, 3:20pm UTC](https://discourse.cmake.org/t/externalproject-avoid-triggering-git-clean-filter-with-update-command/8662 "2023-08-02T15:20:50Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [August 2, 2023, 5:03pm UTC](https://discourse.cmake.org/t/externalproject-avoid-triggering-git-clean-filter-with-update-command/8662/2 "2023-08-02T17:03:43Z")

</div>

I don’t think there’s a general way to “turn off” filters without `-c` commands to `clone` (as this will also perform a checkout). `git-lfs` has an environment variable to no-op itself. Maybe your filter could be a script that does so around the “real” command?

---

_[View the full topic](https://discourse.cmake.org/t/externalproject-avoid-triggering-git-clean-filter-with-update-command/8662)._
