diff --git a/script/add-grammar b/script/add-grammar index 92743fafcc..cc66cf0bec 100755 --- a/script/add-grammar +++ b/script/add-grammar @@ -123,6 +123,7 @@ if [ "$replace" ]; then log "Deregistering submodule: $replace" git submodule deinit "$replace" git rm -rf "$replace" + rm -rf ".git/modules/$replace" script/grammar-compiler update -f >/dev/null 2>&1 fi