diff --git a/README.md b/README.md index c811053..d9535ae 100644 --- a/README.md +++ b/README.md @@ -151,9 +151,9 @@ This means that it can not find the compilation database, which contains the fla * You did not build your package before committing or the flags changed since you last built your backage. Build your package with `catkin build package_name`. * Your package was moved or renamed. To fix this, navigate to the root of your catkin workspace and delete all files generated by the git hooks: ```bash - find src -name "run_hooks" -exec rm {} \; - find .git -name "*.config.yaml" -exec rm {} \; - find .git -name "pre-commit" -exec rm {} \; + find . -name ".git" -type d | xargs -n1 -I _DIR_ find _DIR_ -name "*.config.yaml" -exec rm {} \; + find . -name ".git" -type d | xargs -n1 -I _DIR_ find _DIR_ -name "pre-commit" -exec rm {} \; + find . -name "run_hooks" -exec rm {} \; ``` Then build your package (which will cause the git hooks to re-create the necessary files) and try to commit again.