Description
git commit fails in the devcontainer when no text editor is installed/configured as the default editor.
Steps to Reproduce
- Start a shell in the devcontainer image.
- Ensure no default editor is available/configured (e.g., no
EDITOR/VISUAL set and no editor binary present).
- Run
git commit without -m.
- Observe failure with an editor-related error.
Expected Behavior
git commit should have a usable editor path in the image, or fail with clear guidance on how to configure one.
Actual Behavior
Commit fails because Git cannot open an editor (no text editor is available in the image (or no default)), so the commit cannot proceed without -m.
Environment
- OS: linux 6.17.0-19-generic
- Shell: bash
- Workspace:
/home/carlosvigo/Documents/vigOS/devcontainer
- Container Runtime: unknown
- Image Version/Tag: unknown
- Architecture: unknown
Additional Context
This blocks normal interactive commit flow and can surprise contributors expecting default Git behavior.
Possible Solution
Install/configure a default terminal editor in the image (or set core.editor/EDITOR), and document the fallback behavior in contributor docs.
Changelog Category
Fixed
Acceptance Criteria
Description
git commitfails in the devcontainer when no text editor is installed/configured as the default editor.Steps to Reproduce
EDITOR/VISUALset and no editor binary present).git commitwithout-m.Expected Behavior
git commitshould have a usable editor path in the image, or fail with clear guidance on how to configure one.Actual Behavior
Commit fails because Git cannot open an editor (
no text editor is available in the image (or no default)), so the commit cannot proceed without-m.Environment
/home/carlosvigo/Documents/vigOS/devcontainerAdditional Context
This blocks normal interactive commit flow and can surprise contributors expecting default Git behavior.
Possible Solution
Install/configure a default terminal editor in the image (or set
core.editor/EDITOR), and document the fallback behavior in contributor docs.Changelog Category
Fixed
Acceptance Criteria
git commitworks without-min a default shell session.cursor/rules/tdd.mdc)