This repository was archived by the owner on Dec 5, 2024. It is now read-only.
This repository was archived by the owner on Dec 5, 2024. It is now read-only.
Quotation Marks (") in CommitBody fails to commit, loses commitMessage, and locks out commits #625
Closed
Description
Prerequisites
- Be sure to run with tracing enabled to capture runtime details in the log file
- Include the log file in the PR.
- On Windows, the extension log file is at
%LOCALAPPDATA%\GitHubUnity\github-unity.log
- On macOS, the extension log file is at
~/Library/Application Support/GitHubUnity/github-unity.log
- On Windows, the extension log file is at
Description
If you include a quotation mark in your "Commit summary" (commitBody in the codebase) it fails to log the commit, and erases the commitBody and commitMessage.
Steps to Reproduce
- Make changes that can be seen in the "Changes" tab.
- Select changes to commit.
- Write a "Commit Summary" that includes a quotation mark (").
Expected behavior: Logs the commit, possibly inserting escape characters as necessary or replacing quotation marks if necessary.
Actual behavior: Lose the commit. Changes are preserved, but the message and body are lost.
Reproduces how often: 100% reproduce rate.
Additional Information
Gonna take a crack at fixing this today once I finish what I'm working on. Should be easy enough.
Thanks!