From 07854c993f909ff0c5f139ad3f51d4510737f007 Mon Sep 17 00:00:00 2001 From: John Niang Date: Sun, 18 Feb 2024 16:00:16 +0800 Subject: [PATCH] Fix the problem of being unable to commit (#5362) #### What type of PR is this? /kind cleanup /area core #### What this PR does / why we need it: The wrong `pre-commit` will prevent us from making a Git commit. The problem was caused by . ```bash ui/.husky/pre-commit: line 4: cd: console: No such file or directory husky - pre-commit hook exited with code 1 (error) ``` #### Does this PR introduce a user-facing change? ```release-note None ``` --- ui/.husky/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/.husky/pre-commit b/ui/.husky/pre-commit index 472098314..f2c634340 100755 --- a/ui/.husky/pre-commit +++ b/ui/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -cd console && pnpm exec lint-staged +cd ui && pnpm exec lint-staged