Skip to content

Empty commits in git repo #2087

@plantroon

Description

@plantroon

Which version of floccus are you using?

5.7.0

How many bookmarks do you have, roughly?

130

Are you using other means to sync bookmarks in parallel to floccus?

No

Sync method

Git

Which browser are you using? In case you are using the phone App, specify the Android or iOS version and device please.

Chrome 142.0.7444.60

Which version of Nextcloud Bookmarks are you using? (if relevant)

No response

Which version of Nextcloud? (if relevant)

No response

What kind of WebDAV server are you using? (if relevant)

No response

Describe the Bug

Every sync (triggered manually or on schedule) creates (empty) commits even if there were no changes.

I noticed this was also dealt with in #1944, so I'll mention it here.

Expected Behavior

Do not create commit when there are no changes

To Reproduce

I am unable to reproduce this reliably. It started happening yesterday after I switched web browser, but I have since cleaned up the bookmarks repo and pushed up from the browser to recreate the file.

But when it happens:

  1. trigger sync manually (or wait for scheduled sync)
  2. look at your git repo and notice the empty commit
  3. repeat after ~2 minutes from last sync and you'll have another such commit (with no diff)

I will update if/when I can reliably reproduce this.

Debug log provided

  • I have provided a debug log file

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions