Skip to content

Issue: Deleted content does not get added in git when syncing #465

@albbus-stack

Description

@albbus-stack

All the deleted content, this being articles or images, is not added to git when syncing. Only the modified and not added files are being added to the git commit.

Steps to reproduce
To reproduce the behavior:

  1. Create a new file
  2. Commit it
  3. Delete it and perform a sync with front matter

You are going to notice that the deleted file has not been committed.

Expected Behaviour
Even the deleted files should be added in the git commit since it's a clear modification of the contents of the cms.

Solution
Around these lines of GitListener.ts, in the push() method, there should be another for loop iterating through the files contained in status.deleted adding them to the git commit.

Please let me know if I'm missing on something, I'll be happy to contribute in first person to the fix for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions