fix(non-interactive-env): use shell no-op for editor env vars

- Changed GIT_EDITOR, EDITOR, GIT_SEQUENCE_EDITOR from 'true' to ':' (shell no-op builtin)
- Changed VISUAL from 'true' to '' (empty string to prevent fallback issues)
- Added GIT_MERGE_AUTOEDIT: 'no' to prevent merge editor prompts

Fixes SIGTERM issues when git tries to open editors in non-interactive environments.

🤖 Generated with assistance of OhMyOpenCode (https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
YeonGyu-Kim
2026-01-02 11:55:18 +09:00
parent 038d838e63
commit 4434a59cf0

View File

@@ -7,10 +7,11 @@ export const NON_INTERACTIVE_ENV: Record<string, string> = {
GCM_INTERACTIVE: "never",
HOMEBREW_NO_AUTO_UPDATE: "1",
// Block interactive editors - git rebase, commit, etc.
GIT_EDITOR: "true",
EDITOR: "true",
VISUAL: "true",
GIT_SEQUENCE_EDITOR: "true",
GIT_EDITOR: ":",
EDITOR: ":",
VISUAL: "",
GIT_SEQUENCE_EDITOR: ":",
GIT_MERGE_AUTOEDIT: "no",
// Block pagers
GIT_PAGER: "cat",
PAGER: "cat",