Skip to content
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
@Hassurunous

Description

@Hassurunous

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

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

  1. Make changes that can be seen in the "Changes" tab.
  2. Select changes to commit.
  3. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions