Skip to content

Insomnia retouches & modifies files after "Discard all changes" is pressed in Commit changes view. #8815

@MichaelLykkeStrand

Description

@MichaelLykkeStrand

Expected Behavior

Discards uncommitted local changes. In turn resetting the branch to its previous commit.

Actual Behavior

It correctly seems to discard any local changes unfortunately insomnia retouches or modifies the files with with what seems like default values.

Reproduction Steps

User1:

  1. Create new empty git repository in github.
  2. Using git sync. add the github repository and clone it.
    Image
  3. Create a new request collection named "My Collection"
  4. Add a new http get request for 'localhost/v1/users' with two headers named 'foo' having 'bar1' & 'bar2' as values respectively.Image
  5. Disable one of the foo headers
    Image
  6. Commit and push changes to the main branch

User2:

  1. Using git sync. add and clone the same github repository.
    Image
    Image
  2. Open the Commit changes view
    2.1. You may notice that the "My Collection" yaml file has been modified immediately upon clone.
    Image
  3. Press the 'Discard all changes' button
    Image
  4. Confirm by clicking OK in the Undo Changes dialog.Image
  5. Open Commit changes view again and notice the branch didn't reset to the previous commit
    Image

Is there an existing issue for this?

Which sync method do you use?

  • Git sync.
  • Insomnia Cloud sync.
  • Local only

Additional Information

No response

Insomnia Version

11.1.0

What operating system are you using?

Windows

Operating System Version

Windows 11 Enterprise version 10.0.26100 Build 26100

Installation method

.exe download from github

Last Known Working Insomnia version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-bugBug: general classificationS-unverifiedStatus: Unverified by maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions