Skip to content

[Question] Running template-sync multiple times gives the same commits #17

Description

@ToshY

Question

I started using template-sync due to mention in dunglas/symfony-docker, but I am very confused on how it works when running multiple times subsequently.

I've created a template based on dunglas/symfony-docker and then run the following command:

$ curl -sSL https://raw.githubusercontent.com/coopTilleuls/template-sync/main/template-sync.sh | sh -s -- https://github.com/dunglas/symfony-docker

commit dab130802efd5bda3fe1053db7c5ee0f2726f15d (origin/main, origin/HEAD, main)
Author: <redacted> <redacted@redacted>
Date:   Tue Aug 19 16:14:34 2025 +0300

    deps: remove unnecessary dependencies


Auto-merging Dockerfile
CONFLICT (modify/delete): docs/alpine.md deleted in HEAD and modified in dab1308 (deps: remove unnecessary dependencies).  Version dab1308 (deps: remove unnecessary dependencies) of docs/alpine.md left in tree.
error: could not apply dab1308... deps: remove unnecessary dependencies
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".

I get the prompt to resolve a conflict and then merge it. That's not a problem. I'll fix the conflict and push it to my own repo.

However, I expect that when I run template-sync again, that now nothing requires syncing anymore, but apparently it will "sync" the same commit again.

$ curl -sSL https://raw.githubusercontent.com/coopTilleuls/template-sync/main/template-sync.sh | sh -s -- https://github.com/dunglas/symfony-docker

commit dab130802efd5bda3fe1053db7c5ee0f2726f15d (origin/main, origin/HEAD, main)
Author: <redacted> <redacted@redacted>
Date:   Tue Aug 19 16:14:34 2025 +0300

    deps: remove unnecessary dependencies


Auto-merging Dockerfile
CONFLICT (modify/delete): docs/alpine.md deleted in HEAD and modified in dab1308 (deps: remove unnecessary dependencies).  Version dab1308 (deps: remove unnecessary dependencies) of docs/alpine.md left in tree.
error: could not apply dab1308... deps: remove unnecessary dependencies
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".

As I do not see a mention about this behavior in the docs, I am not sure if it's a bug or that's "intended" behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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