Working tree, staging, commit — the model AI breaks first — step 6 of 9
AI ran git add . and ended up staging .env along with the real
source changes. The script below filters the staged list, but the
filter on line 4 keeps .env instead of removing it. Fix line 4 so
only files that DON'T start with .env are kept.
Expected output:
['src/auth.py', 'tests/test_auth.py']
The break is on line 4 — but read the whole snippet first.
⌘↵ runs the editor.read, then continue.
AI ran git add . and ended up staging .env along with the real
source changes. The script below filters the staged list, but the
filter on line 4 keeps .env instead of removing it. Fix line 4 so
only files that DON'T start with .env are kept.
Expected output:
['src/auth.py', 'tests/test_auth.py']
The break is on line 4 — but read the whole snippet first.
this step needs the editor
on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.