AndreasAugustin / actions-template-sync

:octocat: Github action for syncing other repositories (templates) with current repository. Any git provider like GitHub (enterprise), GitLab, Gittea,.. are supported for the source repository

Home Page:https://andreasaugustin.github.io/actions-template-sync/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Automatic merge failed when file mode changes

Fs02 opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

"Pull template" failed when there's conflict with file mode between source and target repository

Expected Behavior

template repository file mode should be used

Current Behavior

it errored and stopped the job, the last message is:

Automatic merge failed; fix conflicts and then commit the result.

Steps To Reproduce

No response

Possible Solution

No response

Additional Information/Context

No response

Template sync version Version

1.1.1

Hi! Thank you for your contribution!'Happy coding! 🚀

Hi @Fs02 and thank you for the bug report.
I did not find time yet to look into it but it sounds interesting.
Think a fast option could be to use git config --global core.fileMode false but reading your description you would rather like to use the file mode within the source (template) repository.

Will think about a solution but I guess it will take some days. Maybe you have some further thoughts/ideas relate to the issue?

@Fs02 sorry was busy. Today I was able to confirm the bug with a small test.
A fix will be provided soon.

@Fs02 a new release is available v1.1.3. Hopefully this will solve your issue.