fix: ensure Git output is in English for stack sync
Description
- fix: ensure Git output is in English for stack sync
Set LC_ALL=C in StandardGitCommand.Git() to ensure Git output is always in English, regardless of user's locale settings. This fixes an issue where 'glab stack sync' would fail when Git was configured to output messages in languages other than English.
The stack sync command parses Git status messages using English string constants like "Your branch is behind", "have diverged", and "nothing to commit". Without LC_ALL=C, these messages would be localized (e.g., German: "Ihr Branch ist hinter"), causing the string matching to fail.
This change makes StandardGitCommand consistent with StandardGitRunner, which already sets LC_ALL=C for the same reason.
Fixes #7687 (closed)
Related Issues
Resolves #[issue_number]