Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@damienstanton
Copy link
Contributor

With the released version, all gitu commands for showing, editing etc. using the EDITOR env var and others will fail because we try to launch the subprocess command directly.

On Windows, this doesn't work; Commands need to be prepended with cmd /C to be executed in sub-shells.

@damienstanton
Copy link
Contributor Author

Note that there are some tests that this currently breaks, so I'll fix these before calling it ready to merge.

@codecov
Copy link

codecov bot commented Mar 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.73%. Comparing base (c772624) to head (ead232d).
⚠️ Report is 116 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #330      +/-   ##
==========================================
+ Coverage   87.71%   87.73%   +0.01%     
==========================================
  Files          63       63              
  Lines        5627     5636       +9     
==========================================
+ Hits         4936     4945       +9     
  Misses        691      691              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@altsem altsem requested a review from Copilot September 7, 2025 12:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Fixes a Windows-specific bug where subprocess commands for showing and editing operations fail because they need to be executed through cmd /C on Windows systems.

  • Adds Windows-specific command execution logic using cmd /C prefix
  • Maintains existing Unix/Linux behavior with conditional compilation
  • Ensures editor commands work correctly across all platforms

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@altsem
Copy link
Owner

altsem commented Sep 7, 2025

edit: code seems fine, I'll merge this and just change the commit title to generate a changelog.
Not sure about the test situation on windows, it shouldn't be trying to open an editor from the tests I believe.

@altsem altsem closed this Sep 7, 2025
@altsem altsem reopened this Sep 7, 2025
@altsem altsem enabled auto-merge (squash) September 7, 2025 12:39
@altsem altsem disabled auto-merge September 7, 2025 12:39
@altsem altsem merged commit 8bc7a3a into altsem:master Sep 7, 2025
6 of 7 checks passed
@damienstanton damienstanton deleted the bugfix/windows-show branch September 10, 2025 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants