mirror of
https://github.com/LeeGaoGao/ECC.git
synced 2026-07-24 20:23:07 +00:00
fix(learning): add project registry maintenance
This commit is contained in:
committed by
Affaan Mustafa
parent
98bd517451
commit
bc519e5b8e
@@ -116,7 +116,13 @@ except(KeyError, TypeError, ValueError):
|
||||
# If cwd was provided in stdin, use it for project detection
|
||||
if [ -n "$STDIN_CWD" ] && [ -d "$STDIN_CWD" ]; then
|
||||
_GIT_ROOT=$(git -C "$STDIN_CWD" rev-parse --show-toplevel 2>/dev/null || true)
|
||||
export CLAUDE_PROJECT_DIR="${_GIT_ROOT:-$STDIN_CWD}"
|
||||
if [ -n "$_GIT_ROOT" ]; then
|
||||
export CLAUDE_PROJECT_DIR="$_GIT_ROOT"
|
||||
unset CLV2_NO_PROJECT
|
||||
else
|
||||
unset CLAUDE_PROJECT_DIR
|
||||
export CLV2_NO_PROJECT=1
|
||||
fi
|
||||
fi
|
||||
|
||||
# ─────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user