Skip to content

Fix commit failures with empty messages and "nothing to commit"#230

Merged
DougHennig merged 1 commit into
DougHennig:masterfrom
bobloy:fix/commit-message-handling
Jun 6, 2026
Merged

Fix commit failures with empty messages and "nothing to commit"#230
DougHennig merged 1 commit into
DougHennig:masterfrom
bobloy:fix/commit-message-handling

Conversation

@bobloy
Copy link
Copy Markdown
Contributor

@bobloy bobloy commented Jun 5, 2026

Fixes two version control commit bugs:

1. Empty commit messages when "Use GUI functions" is on but TortoiseGit isn't detected. Project Explorer skipped its Commit Message dialog, expecting TortoiseGit to prompt, but then fell back to command-line git — so auto-commits failed silently and manual commits failed with "Aborting commit due to empty commit message". Commits now only rely on a GUI client for the message when one is actually available (new lGUIAvailable property on VersionControlOperations); otherwise the Commit Message dialog prompts. Mercurial, which has no GUI commit support, gets the same treatment.

2. "Nothing to commit" treated as a failed commit. Committing when nothing changed (e.g. auto-commit after a build that changed no text equivalents) showed a spurious "The commit failed" error. git's "nothing to commit" responses and hg's "nothing changed" exit code are now treated as success. Also: command-line git errors are no longer swallowed when TortoiseGit is installed but the GUI option is off, and the failure dialog now labels the displayed text as the provider's response rather than as the commit message.

Includes regenerated binaries (FoxBin2PRG).

  • Draft until tested in VFP 9

🤖 Generated with Claude Code

1. With "Use GUI functions" on but TortoiseGit not detected, commits
   ran with an empty message: auto-commits failed silently and manual
   commits failed with "Aborting commit due to empty commit message".
   Project Explorer now prompts with its Commit Message dialog when no
   GUI client is available (new lGUIAvailable property).

2. git's "nothing to commit" response and hg's "nothing changed" exit
   code are now treated as success instead of showing a spurious "The
   commit failed" error (e.g. after a build that changed no text
   equivalents).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@bobloy bobloy force-pushed the fix/commit-message-handling branch from ed84d31 to bbd81ff Compare June 5, 2026 20:43
@bobloy bobloy marked this pull request as ready for review June 5, 2026 20:51
@DougHennig DougHennig merged commit f794508 into DougHennig:master Jun 6, 2026
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