Post #2224011
2026-04-30 08:08 UTC
@GyrosGeier@hachyderm.io Beware of .gitattributes. It can change what git would commit. If you do not honor that, git can get confused. Usually this never happens (as the source comes from git anyway), but if you want to handle potentially malicious sources, this can maybe get important. In particular text and eol attributes can cause git to normalize line endings.
Replies (1)
-
@manx@mastodon.online 2026-04-30 08:09
@GyrosGeier@hachyderm.io How do I know that? git-svn does not handle .gitattributes, and if you have a rogue .gitattributes somewhere in the tree and use git-svn, affected files can be in modified state because the file stored in the repo is not equal to the file that git would commit to the repo.