canonical / juju-verify

https://launchpad.net/juju-verify
GNU General Public License v3.0
2 stars 7 forks source link

"make clean" removes unintended files #129

Closed esunar closed 2 years ago

esunar commented 2 years ago

Even though the .idea and .vscode should not be affected by make clean target, they are getting removed.


Imported from Launchpad using lp2gh.

esunar commented 2 years ago

(by martin-kalcok) Leading exclamation mark seems to be the issue here

clean:
    **echo** "Cleaning files"
    **git** clean -fxd -e '!.idea' -e '!.vscode'

the "-e" option of git clean uses same pattern/structure as .gitignore files.